Skip to content

Commit

Permalink
fix rolecheck
Browse files Browse the repository at this point in the history
  • Loading branch information
Techbot121 authored and Meta Construct committed Mar 10, 2024
1 parent 663055d commit 9c9c976
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/services/discord/modules/commands/developer/SQL.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,11 @@ export const SlashSQLCommand: SlashCommand = {
try {
switch (target) {
case "metaconcord": {
if (!(<string[]>ctx.member.roles).includes(bot.config.roles.elevated))
if (
!(<Discord.GuildMemberRoleManager>ctx.member.roles).cache.has(
bot.config.roles.elevated
)
)
await ctx.reply(
EphemeralResponse(
`You need the <@&${bot.config.roles.elevated}> role to run SQL commands on me!`
Expand Down

0 comments on commit 9c9c976

Please sign in to comment.