/[sudobot]/trunk/src/utils/util.ts
ViewVC logotype

Diff of /trunk/src/utils/util.ts

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 210 by rakin, Mon Jul 29 17:29:02 2024 UTC revision 220 by rakin, Mon Jul 29 17:29:04 2024 UTC
# Line 20  export async function hasPermission(clie Line 20  export async function hasPermission(clie
20          m = msg.member! as GuildMember;          m = msg.member! as GuildMember;
21      }      }
22            
23      if (member.roles.highest?.position >= m.roles.highest?.position) {      if (member.id !== m.id && member.roles.highest?.position >= m.roles.highest?.position) {
24          if (msg instanceof Interaction && msg.deferred) {          if (msg instanceof Interaction && msg.deferred) {
25              await msg.editReply({              await msg.editReply({
26                  embeds: [                  embeds: [

Legend:
Removed from v.210  
changed lines
  Added in v.220

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26