Skip to content

Commit

Permalink
u
Browse files Browse the repository at this point in the history
  • Loading branch information
OasisAkari committed Dec 24, 2024
1 parent dad5f12 commit 3707eee
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 12 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@ config/*.toml*
test*
*.db
cache/*
assets/arcaea*
assets/maimai*
assets/modules/arcaea
assets/arc.apk
assets/modules/maimai*
!assets/modules/maimai/mai_utage_info.json
!assets/modules/maimai/mai_grade_info.json
Expand All @@ -27,4 +30,4 @@ output/*
assets/bots_list.json
assets/discord_slash_list.json
assets/modules_list.json
assets/schedulers_list.json
assets/schedulers_list.json
11 changes: 0 additions & 11 deletions bots/discord/slash_message.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,17 +101,6 @@ async def send_message(

return FinishedSession(self, msg_ids, send)

async def check_permission(self):
if (
self.session.message.channel.permissions_for(
self.session.message.author
).administrator
or isinstance(self.session.message.channel, discord.DMChannel)
or self.info.is_super_user
or self.info.check_TargetAdmin(self.target.target_id)
):
return True
return False

async def check_native_permission(self):
if self.session.message.channel.permissions_for(
Expand Down

0 comments on commit 3707eee

Please sign in to comment.