mirror of
https://github.com/Matthww/TuneBot.git
synced 2026-09-21 20:47:44 +00:00
10 lines
292 B
Python
10 lines
292 B
Python
import typing
|
|
import discord
|
|
|
|
|
|
def process_colours(colors: typing.Dict[str, str]) -> typing.Dict[str, discord.Color]:
|
|
colour_dict: typing.Dict[str, discord.Color] = {}
|
|
for name, color in colors.items():
|
|
colour_dict[name] = discord.Color(int(color, 16))
|
|
return colour_dict
|