jsw
jsw
DIdiscord.js - Imagine ❄
Created by jsw on 12/14/2024 in #djs-questions
How do i delete a followup to a deferreply using a button?
It works! Tysm
10 replies
DIdiscord.js - Imagine ❄
Created by jsw on 12/14/2024 in #djs-questions
How do i delete a followup to a deferreply using a button?
10 replies
DIdiscord.js - Imagine ❄
Created by jsw on 12/14/2024 in #djs-questions
How do i delete a followup to a deferreply using a button?
I'm trying to implement a delete button for the typst error messages
10 replies
DIdiscord.js - Imagine ❄
Created by jsw on 12/14/2024 in #djs-questions
How do i delete a followup to a deferreply using a button?
this file returns
export interface SlashCommand {
command:
| SlashCommandBuilder
| SlashCommandOptionsOnlyBuilder
| SlashCommandSubcommandsOnlyBuilder;
execute: (interaction: ChatInputCommandInteraction) => void;
autocomplete?: (interaction: AutocompleteInteraction) => void;
modal?: (interaction: ModalSubmitInteraction<CacheType>) => void;
button?: (interaction: ButtonInteraction<CacheType>) => void;
inDm?: boolean;
inGuild?: boolean;
permissions?: Permissions;
}
export interface SlashCommand {
command:
| SlashCommandBuilder
| SlashCommandOptionsOnlyBuilder
| SlashCommandSubcommandsOnlyBuilder;
execute: (interaction: ChatInputCommandInteraction) => void;
autocomplete?: (interaction: AutocompleteInteraction) => void;
modal?: (interaction: ModalSubmitInteraction<CacheType>) => void;
button?: (interaction: ButtonInteraction<CacheType>) => void;
inDm?: boolean;
inGuild?: boolean;
permissions?: Permissions;
}
and those funcitons will be ran by the event handlers
10 replies
DIdiscord.js - Imagine ❄
Created by jsw on 12/14/2024 in #djs-questions
How do i delete a followup to a deferreply using a button?
i'm not sure how i'd get the message parameter in the button event handler
10 replies
DIdiscord.js - Imagine ❄
Created by jsw on 12/14/2024 in #djs-questions
How do i delete a followup to a deferreply using a button?
10 replies
DIdiscord.js - Imagine ❄
Created by jsw on 12/10/2024 in #djs-questions
check if bot is user installed (or check if dm permission without sending a message)
<3
6 replies
DIdiscord.js - Imagine ❄
Created by jsw on 12/10/2024 in #djs-questions
check if bot is user installed (or check if dm permission without sending a message)
Damn it looks like i've been searching under the wrong names. Thank you!
6 replies