mirror of
https://github.com/hencaric/SCNewsBot.git
synced 2026-08-17 06:56:03 +01:00
reformat
This commit is contained in:
@@ -211,7 +211,8 @@ class Announcement:
|
|||||||
value = value[1:]
|
value = value[1:]
|
||||||
|
|
||||||
converted_value = discord.utils.find(
|
converted_value = discord.utils.find(
|
||||||
lambda channel: channel.name.lower() == value.lower(), guild.text_channels
|
lambda channel: channel.name.lower() == value.lower(),
|
||||||
|
guild.text_channels,
|
||||||
)
|
)
|
||||||
if not converted_value and value.isnumeric():
|
if not converted_value and value.isnumeric():
|
||||||
converted_value = guild.get_channel(int(value))
|
converted_value = guild.get_channel(int(value))
|
||||||
|
|||||||
Reference in New Issue
Block a user