Skip to content

Instantly share code, notes, and snippets.

@capJavert
Last active January 2, 2024 12:42
Show Gist options
  • Save capJavert/8b9f7eda7d6d8ea37d7fd811335b550c to your computer and use it in GitHub Desktop.
Save capJavert/8b9f7eda7d6d8ea37d7fd811335b550c to your computer and use it in GitHub Desktop.
Discord bot command to create custom emoji
new SlashCommandBuilder()
.setName('create-emoji')
.setDescription('create emoji')
.addStringOption(option => option.setName('name')
.setDescription('Emoji name')
.setRequired(true)
.setMinLength(2)
)
.addAttachmentOption(option => option.setName('image')
.setDescription('Emoji image')
.setRequired(true)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment