mirror of
https://github.com/TitanEmbeds/Titan.git
synced 2025-07-04 12:15:24 +02:00
Pass if there are no attribute
This commit is contained in:
@ -151,6 +151,8 @@ def get_message_mentions(mentions):
|
||||
def get_webhooks_list(guild_webhooks):
|
||||
webhooks = []
|
||||
for webhook in guild_webhooks:
|
||||
if not webhook.channel or not webhook.guild:
|
||||
continue
|
||||
webhooks.append({
|
||||
"id": str(webhook.id),
|
||||
"guild_id": str(webhook.guild.id),
|
||||
|
Reference in New Issue
Block a user