⬆️ Fixed @discordjs/builders v.13

This commit is contained in:
Axel Olausson Holtenäs 2022-04-22 15:45:19 +02:00
parent 4ec45ed190
commit f0dec60687
No known key found for this signature in database
GPG key ID: 7BF6826B76382CBA
7 changed files with 16 additions and 9 deletions

View file

@ -28,7 +28,7 @@
}, },
"dependencies": { "dependencies": {
"@crowdin/ota-client": "^0.7.0", "@crowdin/ota-client": "^0.7.0",
"@discordjs/builders": "^0.12.0", "@discordjs/builders": "^0.13.0",
"@discordjs/rest": "^0.4.0", "@discordjs/rest": "^0.4.0",
"axios": "^0.26.0", "axios": "^0.26.0",
"chance": "^1.1.8", "chance": "^1.1.8",

View file

@ -25,7 +25,7 @@ export default {
`The channel that contains the counter you want to view` `The channel that contains the counter you want to view`
) )
.setRequired(true) .setRequired(true)
.addChannelType(ChannelType.GuildText as number) .addChannelTypes(ChannelType.GuildText)
); );
}, },
execute: async (interaction: CommandInteraction) => { execute: async (interaction: CommandInteraction) => {

View file

@ -28,7 +28,7 @@ export default {
.setName("channel") .setName("channel")
.setDescription("The channel to send the counter to.") .setDescription("The channel to send the counter to.")
.setRequired(true) .setRequired(true)
.addChannelType(ChannelType.GuildText as number) .addChannelTypes(ChannelType.GuildText)
) )
.addStringOption((option) => .addStringOption((option) =>
option option

View file

@ -28,7 +28,7 @@ export default {
.setName("channel") .setName("channel")
.setDescription("The channel to delete the counter from.") .setDescription("The channel to delete the counter from.")
.setRequired(true) .setRequired(true)
.addChannelType(ChannelType.GuildText as number) .addChannelTypes(ChannelType.GuildText)
); );
}, },
execute: async (interaction: CommandInteraction) => { execute: async (interaction: CommandInteraction) => {

View file

@ -36,8 +36,13 @@ export default {
.setName("type") .setName("type")
.setDescription("What type of reputation you want to repute") .setDescription("What type of reputation you want to repute")
.setRequired(true) .setRequired(true)
.addChoice("Positive", "positive") .addChoices(
.addChoice("Negative", "negative") { name: "Positive", value: "positive" },
{
name: "Negative",
value: "negative",
}
)
); );
}, },
execute: async (interaction: CommandInteraction) => { execute: async (interaction: CommandInteraction) => {

View file

@ -25,7 +25,7 @@ export default {
option option
.setName("channel") .setName("channel")
.setDescription("Channel for audit messages.") .setDescription("Channel for audit messages.")
.addChannelType(ChannelType.GuildText as number) .addChannelTypes(ChannelType.GuildText)
); );
}, },
execute: async (interaction: CommandInteraction) => { execute: async (interaction: CommandInteraction) => {

View file

@ -25,14 +25,16 @@ export default {
option option
.setName("join-channel") .setName("join-channel")
.setDescription("Channel for join messages.") .setDescription("Channel for join messages.")
.addChannelType(ChannelType.GuildText as number) .addChannelTypes(ChannelType.GuildText)
) )
.addChannelOption((option) => .addChannelOption((option) =>
option option
.setName("leave-channel") .setName("leave-channel")
.setDescription("Channel for leave messages.") .setDescription("Channel for leave messages.")
.addChannelType(ChannelType.GuildText as number) .addChannelTypes(ChannelType.GuildText)
) )
.addStringOption((option) => .addStringOption((option) =>
option option
.setName("leave-message") .setName("leave-message")