mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-06-08 00:05:01 +00:00
Merge branch '240811_application_commands_merge_2' into next
This commit is contained in:
commit
43b8017985
279 changed files with 6192 additions and 3044 deletions
|
@ -1,6 +1,7 @@
|
|||
import {
|
||||
APIEmbed,
|
||||
ChannelType,
|
||||
ChatInputCommandInteraction,
|
||||
Client,
|
||||
DiscordAPIError,
|
||||
EmbedData,
|
||||
|
@ -1305,11 +1306,11 @@ export async function resolveStickerId(bot: Client, id: Snowflake): Promise<Stic
|
|||
}
|
||||
|
||||
export async function confirm(
|
||||
channel: GuildTextBasedChannel,
|
||||
context: Message | User | ChatInputCommandInteraction,
|
||||
userId: string,
|
||||
content: MessageCreateOptions,
|
||||
): Promise<boolean> {
|
||||
return waitForButtonConfirm(channel, content, { restrictToId: userId });
|
||||
return waitForButtonConfirm(context, content, { restrictToId: userId });
|
||||
}
|
||||
|
||||
export function messageSummary(msg: SavedMessage) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue