Skip to content

Commit 29354e0

Browse files
committed
Change color vars from Tuple to discord.Color
1 parent 5457ef3 commit 29354e0

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/utils.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
import re
2-
31
import discord
42
from discord.errors import Forbidden
53

64
# color scheme for embeds as rbg
7-
blue_light = (20, 255, 255) # default color
8-
yellow = (245, 218, 17) # waring like 'hey, that's not cool'
9-
orange = (245, 139, 17) # waring - rather critical like 'no more votes left'
5+
blue_light = discord.Color.from_rgb(20, 255, 255) # default color
6+
green = discord.Color.from_rgb(142, 250, 60) # success green
7+
yellow = discord.Color.from_rgb(245, 218, 17) # waring like 'hey, that's not cool'
8+
orange = discord.Color.from_rgb(245, 139, 17) # waring - rather critical like 'no more votes left'
9+
red = discord.Color.from_rgb(255, 28, 25) # error red
1010

1111

1212
async def send_embed(ctx, embed):

0 commit comments

Comments
 (0)