它说“x”没有被访问 Pylance 但我不知道为什么它曾经工作到现在。如果可以请帮忙。
troll3= ["troll" , "ulikemen" , "someone-is-in-my-house" , ";/","amogsus"]
@client.command()
@commands.has_permissions(administrator=True)
async def nuke(ctx):
guild = ctx.guild
await ctx.author.send(f'fake nuke command lol {ctx.author.mention}')
for x in range(5):
time.sleep(1)
await ctx.send(f'[+] role: {(random.choice(troll3))} has been created')
try:
for channel in guild.channels:
await ctx.send(f'channel: {channel.name} was deleted')
except:
await ctx.send('g')