3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-06-08 00:05:01 +00:00

Added Discord attachment link reaction, fixed emoji configuration and moved util functions

This commit is contained in:
Lily Bergonzat 2024-02-16 11:51:58 +01:00
parent a4c4b17a14
commit 592d037148
173 changed files with 1540 additions and 1170 deletions

View file

@ -1,6 +1,7 @@
import {
APIEmbed,
ChannelType,
ChatInputCommandInteraction,
Client,
DiscordAPIError,
EmbedData,
@ -1409,11 +1410,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) {