@bot.command()
async def test(ctx, arg):
if arg == 1:
channel = bot.get_channel(898531523010121768)
await channel.send("аргумент1")
if arg == 2:
channel = bot.get_channel(898531523010121768)
await channel.send("аргумент2")
else:
print("Error")
@bot.command()
async def test(ctx, arg):
if arg == '1':
channel = bot.get_channel(898531523010121768)
await channel.send("аргумент1")
if arg == '2':
channel = bot.get_channel(898531523010121768)
await channel.send("аргумент2")
else:
print("Error")