mirror of
https://github.com/TitanEmbeds/Titan.git
synced 2024-12-24 22:17:03 +01:00
Revert to bot message if webhook failed to create SOMEHOW
This commit is contained in:
parent
0a0be1a83b
commit
f50b57ff91
@ -171,7 +171,10 @@ def get_channel_webhook_url(guild_id, channel_id):
|
||||
"token": webhook["token"]
|
||||
}
|
||||
webhook = discord_api.create_webhook(channel_id, name)
|
||||
return webhook["content"]
|
||||
if webhook and "content" in webhook:
|
||||
return webhook["content"]
|
||||
else:
|
||||
return None
|
||||
|
||||
def get_all_users(guild_id):
|
||||
users = redisqueue.list_guild_members(guild_id)
|
||||
|
Loading…
Reference in New Issue
Block a user