mirror of
https://github.com/TitanEmbeds/Titan.git
synced 2024-12-25 14:37:02 +01:00
High res images with webp
This commit is contained in:
parent
70aae0ab22
commit
490afedba8
@ -90,10 +90,10 @@ def check_user_permission(guild_id, id):
|
|||||||
return False
|
return False
|
||||||
|
|
||||||
def generate_avatar_url(id, av):
|
def generate_avatar_url(id, av):
|
||||||
return avatar_base_url + str(id) + '/' + str(av) + '.jpg'
|
return avatar_base_url + str(id) + '/' + str(av) + '.webp?size=1024'
|
||||||
|
|
||||||
def generate_guild_icon_url(id, hash):
|
def generate_guild_icon_url(id, hash):
|
||||||
return guild_icon_url + str(id) + "/" + str(hash) + ".jpg"
|
return guild_icon_url + str(id) + "/" + str(hash) + ".webp?size=1024"
|
||||||
|
|
||||||
def generate_bot_invite_url(guild_id):
|
def generate_bot_invite_url(guild_id):
|
||||||
url = "https://discordapp.com/oauth2/authorize?&client_id={}&scope=bot&permissions={}&guild_id={}".format(config['client-id'], '641195117', guild_id)
|
url = "https://discordapp.com/oauth2/authorize?&client_id={}&scope=bot&permissions={}&guild_id={}".format(config['client-id'], '641195117', guild_id)
|
||||||
|
@ -816,7 +816,7 @@
|
|||||||
if (user_id == bot_client_id && (message_contents.includes("**") && ( (message_contents.includes("<")&&message_contents.includes(">")) || (message_contents.includes("[") && message_contents.includes("]")) ))) {
|
if (user_id == bot_client_id && (message_contents.includes("**") && ( (message_contents.includes("<")&&message_contents.includes(">")) || (message_contents.includes("[") && message_contents.includes("]")) ))) {
|
||||||
return global_guest_icon;
|
return global_guest_icon;
|
||||||
} else {
|
} else {
|
||||||
return "https://cdn.discordapp.com/avatars/" + user_id + "/" + avatar_hash + ".png";
|
return "https://cdn.discordapp.com/avatars/" + user_id + "/" + avatar_hash + ".webp?size=1024";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user