def set_name(self, *name):
"""Sets bot's name
Parameters:
*name: The name you want to set for the bot
Example: [p]set_name Beaftek's bot"""
try:
await self.bot.edit_profile(username=" ".join(name))
await self.bot.say("Done!")
except discord.HTTPException:
await self.bot.say("HTTP Exception")
except discord.InvalidArgument:
await self.bot.say("Wrong name format (too long?)")
评论列表
文章目录