fix: fixed method naming
This commit is contained in:
parent
0353783aac
commit
c03ca6649b
1 changed files with 2 additions and 2 deletions
|
@ -494,7 +494,7 @@ class Info(commands.Cog):
|
||||||
|
|
||||||
await ctx.send(embed=data)
|
await ctx.send(embed=data)
|
||||||
|
|
||||||
async def fetch_twemoj(self, unicode_emoji):
|
async def fetch_twemoji(self, unicode_emoji):
|
||||||
base_url = "https://cdn.jsdelivr.net/gh/jdecked/twemoji@latest/assets/72x72/"
|
base_url = "https://cdn.jsdelivr.net/gh/jdecked/twemoji@latest/assets/72x72/"
|
||||||
emoji_codepoint = "-".join([hex(ord(char))[2:] for char in unicode_emoji])
|
emoji_codepoint = "-".join([hex(ord(char))[2:] for char in unicode_emoji])
|
||||||
segments = emoji_codepoint.split("-")
|
segments = emoji_codepoint.split("-")
|
||||||
|
@ -511,7 +511,7 @@ class Info(commands.Cog):
|
||||||
if isinstance(icon, discord.Asset):
|
if isinstance(icon, discord.Asset):
|
||||||
icon_url = icon.url
|
icon_url = icon.url
|
||||||
elif isinstance(icon, str):
|
elif isinstance(icon, str):
|
||||||
icon_url = await self.fetch_twemoji_url(unicode_emoji=icon)
|
icon_url = await self.fetch_twemoji(unicode_emoji=icon)
|
||||||
permissions = role.permissions
|
permissions = role.permissions
|
||||||
if role.color.value == 0:
|
if role.color.value == 0:
|
||||||
colorint = 10070709
|
colorint = 10070709
|
||||||
|
|
Loading…
Reference in a new issue