upgrade to dd15
This commit is contained in:
parent
08a2b375a3
commit
5bc71c2767
6
deps.ts
6
deps.ts
|
@ -1,12 +1,12 @@
|
||||||
// All external dependancies are to be loaded here to make updating dependancy versions much easier
|
// 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 config from './config.ts';
|
||||||
import { LOCALMODE } from './flags.ts';
|
import { LOCALMODE } from './flags.ts';
|
||||||
export const botId = getBotIdFromToken(LOCALMODE ? config.localtoken : config.token);
|
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';
|
export { Client } from 'https://deno.land/x/mysql@v2.10.2/mod.ts';
|
||||||
|
|
||||||
|
|
|
@ -20,7 +20,7 @@ export const onlyOneReaction = async (bot: Bot, payload: ReactionAdd, message: M
|
||||||
const otherEmoji = emojiName(reaction.emoji);
|
const otherEmoji = emojiName(reaction.emoji);
|
||||||
|
|
||||||
if (newEmoji !== otherEmoji) {
|
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)
|
utils.commonLoggers.reactionDeleteError('onlyOneReaction.ts:23', message, e, otherEmoji)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue