Vigintillion
Vigintillion
DIAdiscord.js - Imagine a boo! 👻
Created by Vigintillion on 1/12/2024 in #djs-questions
message collector not working?
Hello my bot has a message collector and it has been working for the longest time untill I swapped to djs14 I didn’t touch the code for the collector but turns out it no longer works? The channel is the correct channel and when the collector expires the on end gets executed but there is no on collect that gets executed when the user types anything, even without a filter no messages are collected. Any clues?
20 replies
DIAdiscord.js - Imagine a boo! 👻
Created by Vigintillion on 7/6/2023 in #djs-questions
Modals
button.showModal(
new Modal()
.setCustomId("test")
.setTitle("This is a test modal")
.addComponents(
new MessageActionRow()
.addComponents(
new TextInputComponent()
.setCustomId("test")
.setLabel("This is a test input.")
.setStyle("SHORT")
)
)
);
button.showModal(
new Modal()
.setCustomId("test")
.setTitle("This is a test modal")
.addComponents(
new MessageActionRow()
.addComponents(
new TextInputComponent()
.setCustomId("test")
.setLabel("This is a test input.")
.setStyle("SHORT")
)
)
);
gives a type error
Argument of type 'MessageActionRow<MessageActionRowComponent, MessageActionRowComponentResolvable, APIActionRowComponent<APIMessageActionRowComponent>>' is not assignable to parameter of type 'MessageActionRow<TextInputComponent, ModalActionRowComponentResolvable, APIActionRowComponent<APITextInputComponent>> | (Required<...> & MessageActionRowOptions<...>)'.
Argument of type 'MessageActionRow<MessageActionRowComponent, MessageActionRowComponentResolvable, APIActionRowComponent<APIMessageActionRowComponent>>' is not assignable to parameter of type 'MessageActionRow<TextInputComponent, ModalActionRowComponentResolvable, APIActionRowComponent<APITextInputComponent>> | (Required<...> & MessageActionRowOptions<...>)'.
Any idea what I'm doing wrong?
7 replies
DIAdiscord.js - Imagine a boo! 👻
Created by Vigintillion on 7/4/2023 in #djs-questions
Permission for disableCommunicationUntil
What is the permission required for the but to use <GuildMember>.disableCommunicationUntil
3 replies