⬆️ 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": {
"@crowdin/ota-client": "^0.7.0",
"@discordjs/builders": "^0.12.0",
"@discordjs/builders": "^0.13.0",
"@discordjs/rest": "^0.4.0",
"axios": "^0.26.0",
"chance": "^1.1.8",

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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