aboutsummaryrefslogtreecommitdiffstats
path: root/bot
diff options
context:
space:
mode:
authorGravatar TizzySaurus <[email protected]>2022-10-19 22:37:54 +0100
committerGravatar TizzySaurus <[email protected]>2022-10-19 22:37:54 +0100
commit08bf905e36ee421c1888dca57e29bce0d185a13b (patch)
tree342cc85b7ddb761f588b803b7fc9e67431ad580c /bot
parentRemove calls to the deprecated .flatten() method (diff)
Remove unnecessary map()
Diffstat (limited to 'bot')
-rw-r--r--bot/exts/holidays/halloween/candy_collection.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/bot/exts/holidays/halloween/candy_collection.py b/bot/exts/holidays/halloween/candy_collection.py
index e63ea3a2..683114f9 100644
--- a/bot/exts/holidays/halloween/candy_collection.py
+++ b/bot/exts/holidays/halloween/candy_collection.py
@@ -88,10 +88,7 @@ class CandyCollection(commands.Cog):
if message.author.bot:
return
- recent_message_ids = map(
- lambda m: m.id,
- [message async for message in self.hacktober_channel.history(limit=10)]
- )
+ recent_message_ids = [message.id async for message in self.hacktober_channel.history(limit=10)]
if message.id in recent_message_ids:
await self.reacted_msg_chance(message)
return