mirror of
				https://github.com/TitanEmbeds/Titan.git
				synced 2025-11-03 23:37:09 +01:00 
			
		
		
		
	Hotfix for webhooks not showing up in the embeds. Message author object sometimes gives User for webhooks. User objects does not have nicknames. Check if the user/author object has nick attribute.
This commit is contained in:
		@@ -69,7 +69,7 @@ class DatabaseInterface(object):
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    def get_message_author(self, message):
 | 
					    def get_message_author(self, message):
 | 
				
			||||||
        author = message.author
 | 
					        author = message.author
 | 
				
			||||||
        if author.nick is not None:
 | 
					        if hasattr(author, 'nick') and author.nick:
 | 
				
			||||||
            author.name = author.nick
 | 
					            author.name = author.nick
 | 
				
			||||||
        obj = {
 | 
					        obj = {
 | 
				
			||||||
            "username": author.name,
 | 
					            "username": author.name,
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user