aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Ava <[email protected]>2019-10-11 22:06:52 +0300
committerGravatar Ava <[email protected]>2019-10-11 22:06:52 +0300
commit837e72920f3ac2daeeaf8710b21b42ac0120394f (patch)
treeeba919539066cd297b2f8420f2d3f86299f37674
parentFix linting errors (diff)
Small code review fixes
-rw-r--r--bot/cogs/information.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/bot/cogs/information.py b/bot/cogs/information.py
index b3525c6f7..b6a3c4a40 100644
--- a/bot/cogs/information.py
+++ b/bot/cogs/information.py
@@ -6,8 +6,7 @@ import typing
from typing import Any, Mapping, Optional
import discord
-from discord import CategoryChannel, Colour, Embed, Member, TextChannel, VoiceChannel
-from discord import Role, utils
+from discord import CategoryChannel, Colour, Embed, Member, Role, TextChannel, VoiceChannel, utils
from discord.ext import commands
from discord.ext.commands import Bot, Cog, Context, command, group
@@ -290,7 +289,7 @@ class Information(Cog):
add_content('Raw message', message.content)
transformer = pprint.pformat if json else self.format_fields
- for field_name in 'embeds attachments'.split():
+ for field_name in ('embeds', 'attachments'):
data = raw_data[field_name]
if not data: