mirror of
https://github.com/hencaric/SCNewsBot.git
synced 2026-08-16 22:46:03 +01:00
switch to LF line endings
This commit is contained in:
@@ -211,13 +211,13 @@ class Announcement:
|
|||||||
value = value[1:]
|
value = value[1:]
|
||||||
|
|
||||||
converted_value = discord.utils.find(
|
converted_value = discord.utils.find(
|
||||||
lambda c: c.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))
|
||||||
elif option.id == "ping":
|
elif option.id == "ping":
|
||||||
converted_value = discord.utils.find(
|
converted_value = discord.utils.find(
|
||||||
lambda r: r.name.lower() == value.lower(), guild.roles
|
lambda role: role.name.lower() == value.lower(), guild.roles
|
||||||
)
|
)
|
||||||
if not converted_value and value.isnumeric():
|
if not converted_value and value.isnumeric():
|
||||||
converted_value = guild.get_role(int(value))
|
converted_value = guild.get_role(int(value))
|
||||||
|
|||||||
Reference in New Issue
Block a user