disable /say command in DM

This commit is contained in:
Ryan Cao 2022-09-16 20:58:46 +08:00
parent ff5882730d
commit 0e4329492e
No known key found for this signature in database
2 changed files with 3 additions and 10 deletions

View file

@ -49,7 +49,8 @@ export const reuploadCommands = async () => {
.setDescription('Just content?')
.setRequired(true)
)
.setDefaultMemberPermissions(PermissionFlagsBits.ModerateMembers),
.setDefaultMemberPermissions(PermissionFlagsBits.ModerateMembers)
.setDMPermission(false),
new SlashCommandBuilder().setName('joke').setDescription("it's a joke"),
].map((command) => command.toJSON());

View file

@ -66,15 +66,7 @@ client.once('ready', async () => {
const mcVersion = await getLatestMinecraftVersion();
client.user?.presence.set({
activities: [
{
name: `Minecraft ${mcVersion}${
mcVersion === '1.19.1' || mcVersion === '1.19.2'
? ' w/ No Chat Reports'
: ''
}`,
},
],
activities: [{ name: `Minecraft ${mcVersion}` }],
status: 'online',
});