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

feat: update to djs 14.19.3, node 22, zod 4

This commit is contained in:
Dragory 2025-05-22 22:35:48 +00:00
parent 595e1a0556
commit 09eb8e92f2
No known key found for this signature in database
189 changed files with 1244 additions and 900 deletions

View file

@ -4,6 +4,7 @@ import { canUseEmoji, isDiscordAPIError, isValidEmoji, noop, trimPluginDescripti
import { canReadChannel } from "../../../utils/canReadChannel.js";
import { TReactionRolePair, reactionRolesCmd } from "../types.js";
import { applyReactionRoleReactionsToMessage } from "../util/applyReactionRoleReactionsToMessage.js";
import { resolveMessageMember } from "../../../pluginUtils.js";
const CLEAR_ROLES_EMOJI = "❌";
@ -32,7 +33,8 @@ export const InitReactionRolesCmd = reactionRolesCmd({
},
async run({ message: msg, args, pluginData }) {
if (!canReadChannel(args.message.channel, msg.member)) {
const member = await resolveMessageMember(msg);
if (!canReadChannel(args.message.channel, member)) {
void pluginData.state.common.sendErrorMessage(
msg,
"You can't add reaction roles to channels you can't see yourself",