upgrade to dd15

This commit is contained in:
Ean Milligan (Bastion) 2022-09-12 18:24:24 -04:00
parent 08a2b375a3
commit 5bc71c2767
2 changed files with 4 additions and 4 deletions

View File

@ -1,12 +1,12 @@
// All external dependancies are to be loaded here to make updating dependancy versions much easier
import { getBotIdFromToken } from 'https://deno.land/x/discordeno@14.0.1/mod.ts';
import { getBotIdFromToken } from 'https://deno.land/x/discordeno@15.0.1/mod.ts'; // https://deno.land/x/discordeno@14.0.1/mod.ts
import config from './config.ts';
import { LOCALMODE } from './flags.ts';
export const botId = getBotIdFromToken(LOCALMODE ? config.localtoken : config.token);
export { ActivityTypes, createBot, editBotMember, editBotStatus, getReactions, Intents, sendMessage, startBot } from 'https://deno.land/x/discordeno@14.0.1/mod.ts';
export { ActivityTypes, createBot, editBotMember, editBotStatus, getReactions, Intents, sendMessage, startBot } from 'https://deno.land/x/discordeno@15.0.1/mod.ts';
export type { Bot, CreateMessage, Emoji, EventHandlers, Guild, Member, Message, User } from 'https://deno.land/x/discordeno@14.0.1/mod.ts';
export type { Bot, CreateMessage, Emoji, EventHandlers, Guild, Member, Message, User } from 'https://deno.land/x/discordeno@15.0.1/mod.ts';
export { Client } from 'https://deno.land/x/mysql@v2.10.2/mod.ts';

View File

@ -20,7 +20,7 @@ export const onlyOneReaction = async (bot: Bot, payload: ReactionAdd, message: M
const otherEmoji = emojiName(reaction.emoji);
if (newEmoji !== otherEmoji) {
bot.helpers.deleteUserReaction(message.channelId, message.id, payload.userId, otherEmoji).catch((e) =>
bot.helpers.deleteUserReaction(message.channelId, message.id, payload.userId, otherEmoji).catch((e: Error) =>
utils.commonLoggers.reactionDeleteError('onlyOneReaction.ts:23', message, e, otherEmoji)
);
}