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:
parent
595e1a0556
commit
09eb8e92f2
189 changed files with 1244 additions and 900 deletions
|
@ -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",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue