C
C
chel-kakoi-to2021-12-12 11:08:47
Python
chel-kakoi-to, 2021-12-12 11:08:47

How to rename the server name in discord by command?

@bot.command()
async def custom_rename(ctx, name):
await ctx.message.delete()
guild = ctx.message.guild
while a < b:
    guild = ctx.message.guild
    await ctx.message.guild(name)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vindicar, 2021-12-12
@Vindicar

await ctx.message.guild(name)
Well of course that won't work. Have you read the docs at all?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question