我想做一个简单的插槽命令,如下所示:
@client.command()
@commands.cooldown(1, 60, commands.BucketType.user)
async def slots(ctx):
slts = ['<a:slots:844184813623443466>','<a:slots:844184813623443466>']
slots = [':game_die:', ':rotating_light:', ':clap:', ':jigsaw:', ':anger:', ':small_red_triangle: ', ':white_circle:', ':red_circle:', ':low_brightness:', ':black_joker:', ':diamond_shape_with_a_dot_inside:', ':bell:', ':diamonds:']
slots2 = [':game_die:', ':rotating_light:', ':clap:', ':jigsaw:', ':anger:', ':small_red_triangle: ', ':white_circle:', ':red_circle:', ':low_brightness:', ':black_joker:', ':diamond_shape_with_a_dot_inside:', ':bell:', ':diamonds:']
slots3 = [':game_die:', ':rotating_light:', ':clap:', ':jigsaw:', ':anger:', ':small_red_triangle: ', ':white_circle:', ':red_circle:', ':low_brightness:', ':black_joker:', ':diamond_shape_with_a_dot_inside:', ':bell:', ':diamonds:']
gg = await ctx.channel.send('|' + (random.choice(slts)) + '|---------|' + ((random.choice(slts)) + '|---------|' + ((random.choice(slts)))) + '|')
seconds = random.randint(3,6)
await asyncio.sleep(seconds)
await gg.edit(content='|' + (random.choice(slots3)) + '|---------|' + ((random.choice(slots2)) + '|---------|' + ((random.choice(slots)))) + '|')
我尝试了很多诸如 <a:emojiname:id>
或 <:emojiname:id>
之类的方法,但都没有奏效。有谁知道如何解决这个问题?实际上,它只是发布 |:slots:|---------|:slots:|---------|:slots| .