Update configuration and README for improved setup and security; disable default API and emoji sync, and enhance Discord permission checks in API routes.

This commit is contained in:
TheOnlyMace
2026-07-21 16:00:52 +02:00
parent 1fdaf4dd6c
commit 127f8a032f
25 changed files with 780 additions and 434 deletions

View File

@@ -44,7 +44,9 @@ class Guild(Cog):
for inv in await guild.invites()
if inv.max_age == 0 and inv.max_uses == 0
]
ch = 1396794297386532978
ch = LOG_CHANNEL_ID
if not ch:
return
me = self.client.get_channel(ch)
if me is None:
logging.error(f"Channel with ID {ch} not found.")
@@ -159,7 +161,9 @@ Threads : {len(guild.threads)}
self.recently_removed_guilds.clear()
try:
ch = 1396794297386532978
ch = LOG_CHANNEL_ID
if not ch:
return
idk = self.client.get_channel(ch)
if idk is None:
logging.error(f"Channel with ID {ch} not found.")