diff options
| author | Hornwitser <[email protected]> | 2018-06-22 15:59:12 +0200 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2018-08-22 21:43:52 -0400 |
| commit | 3679819c5351dc839b6611462a169e68bb02dd4e (patch) | |
| tree | 1a6c8674998f1d05828d5f5b8550f536c3720844 /discord/message.py | |
| parent | [lint] Remove unused variables (diff) | |
| download | discord.py-3679819c5351dc839b6611462a169e68bb02dd4e.tar.xz discord.py-3679819c5351dc839b6611462a169e68bb02dd4e.zip | |
[lint] Remove unnecessary lambdas
Lambdas of the form `lambda x: func(x)` are redundant.
Diffstat (limited to 'discord/message.py')
| -rw-r--r-- | discord/message.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/message.py b/discord/message.py index 526738e8..c6559616 100644 --- a/discord/message.py +++ b/discord/message.py @@ -366,7 +366,7 @@ class Message: def channel_mentions(self): if self.guild is None: return [] - it = filter(None, map(lambda m: self.guild.get_channel(m), self.raw_channel_mentions)) + it = filter(None, map(self.guild.get_channel, self.raw_channel_mentions)) return utils._unique(it) @utils.cached_slot_property('_cs_clean_content') |