From 8c377d6a201aa46a8b41c90c636f536f5a40e6ec Mon Sep 17 00:00:00 2001 From: Myned Date: Tue, 5 Dec 2017 01:50:44 -0500 Subject: [PATCH] Changed type parameter to kind to avoid conflicts --- src/main/utils/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/utils/utils.py b/src/main/utils/utils.py index 5cf3f1e..791b274 100644 --- a/src/main/utils/utils.py +++ b/src/main/utils/utils.py @@ -117,8 +117,8 @@ def close(loop): print('Finished cancelling tasks.') -def generate_embed(ctx, *, title=d.Embed.Empty, type='rich', description=d.Embed.Empty, url=d.Embed.Empty, timestamp=d.Embed.Empty, colour=color, footer={}, image=d.Embed.Empty, thumbnail=d.Embed.Empty, author={}, fields=[]): - embed = d.Embed(title=title, type=type, description=description, url=url, timestamp=timestamp, colour=colour if isinstance(ctx.channel, d.TextChannel) else color) +def generate_embed(ctx, *, title=d.Embed.Empty, kind='rich', description=d.Embed.Empty, url=d.Embed.Empty, timestamp=d.Embed.Empty, colour=color, footer={}, image=d.Embed.Empty, thumbnail=d.Embed.Empty, author={}, fields=[]): + embed = d.Embed(title=title, type=kind, description=description, url=url, timestamp=timestamp, colour=colour if isinstance(ctx.channel, d.TextChannel) else color) if footer: embed.set_footer(text=footer.get('text', d.Embed.Empty), icon_url=footer.get('icon_url', d.Embed.Empty))