god dammit

This commit is contained in:
Essem 2022-12-12 11:36:08 -06:00
parent ed25116851
commit 14d5965caa
No known key found for this signature in database
GPG key ID: 7D497397CC3A2A8C
5 changed files with 18 additions and 20 deletions

View file

@ -18,7 +18,7 @@ export default async (client, interaction) => {
if (cmd.dbRequired && !database) {
await interaction["createMessage"]({ content: "This command is unavailable on stateless instances of esmBot.", flags: 64 });
return;
};
}
const invoker = interaction.member ?? interaction.user;

View file

@ -67,9 +67,9 @@ export default async (client, message) => {
if (cmd.dbRequired && !database) {
await client.rest.channels.createMessage(message.channelID, {
content: "This command is unavailable on stateless instances of esmBot."
})
});
return;
};
}
// don't run if message is in a disabled channel
if (message.guildID && database) {