Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP - Fix API and other things #1367

Draft
wants to merge 12 commits into
base: dev
Choose a base branch
from
Draft

WIP - Fix API and other things #1367

wants to merge 12 commits into from

Conversation

Doges
Copy link
Member

@Doges Doges commented Jan 3, 2022

api broke

@Doges Doges requested a review from a team as a code owner January 3, 2022 11:02
@@ -137,6 +137,7 @@ module.exports = class MainListener extends EventListener {
const cmd = fullCmd[0].toLowerCase().trim()
const command = this.commands.find(c => c.name.toLowerCase() === cmd || (c.aliases && c.aliases.includes(cmd)))
if (command) {
if (!message.channel.permissionsFor(this.user.id).has('SEND_MESSAGES')) return
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I should add a message for no perms later but at least that's the thing whos gonna make the bot unbreakable when it has no perms

@Doges Doges changed the title Fix API and other things WIP - Fix API and other things Jan 3, 2022
@Doges Doges marked this pull request as draft January 3, 2022 11:05
src/commands/utility/guildinfo.js Outdated Show resolved Hide resolved
src/utils/PermissionUtils.js Outdated Show resolved Hide resolved
src/utils/PermissionUtils.js Outdated Show resolved Hide resolved
src/http/api/statistics.js Outdated Show resolved Hide resolved
src/http/api/statistics.js Outdated Show resolved Hide resolved
@Doges Doges marked this pull request as ready for review January 22, 2022 14:47
@Doges Doges marked this pull request as draft April 3, 2023 11:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants