mirror of
				https://github.com/TitanEmbeds/Titan.git
				synced 2025-11-04 07:47:10 +01:00 
			
		
		
		
	Pass if there are no attribute
This commit is contained in:
		@@ -189,7 +189,7 @@ class RedisQueue:
 | 
				
			|||||||
            await self.connection.set(key, "")
 | 
					            await self.connection.set(key, "")
 | 
				
			||||||
            await self.enforce_expiring_key(key)
 | 
					            await self.enforce_expiring_key(key)
 | 
				
			||||||
            return
 | 
					            return
 | 
				
			||||||
        if guild.me.guild_permissions.manage_webhooks:
 | 
					        if guild.me and guild.me.guild_permissions.manage_webhooks:
 | 
				
			||||||
            try:
 | 
					            try:
 | 
				
			||||||
                server_webhooks = await guild.webhooks()
 | 
					                server_webhooks = await guild.webhooks()
 | 
				
			||||||
            except:
 | 
					            except:
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -151,6 +151,8 @@ def get_message_mentions(mentions):
 | 
				
			|||||||
def get_webhooks_list(guild_webhooks):
 | 
					def get_webhooks_list(guild_webhooks):
 | 
				
			||||||
    webhooks = []
 | 
					    webhooks = []
 | 
				
			||||||
    for webhook in guild_webhooks:
 | 
					    for webhook in guild_webhooks:
 | 
				
			||||||
 | 
					        if not webhook.channel or not webhook.guild:
 | 
				
			||||||
 | 
					            continue
 | 
				
			||||||
        webhooks.append({
 | 
					        webhooks.append({
 | 
				
			||||||
            "id": str(webhook.id),
 | 
					            "id": str(webhook.id),
 | 
				
			||||||
            "guild_id": str(webhook.guild.id),
 | 
					            "guild_id": str(webhook.guild.id),
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user