为什么我的不和谐机器人无法使用自定义动画表情符号?

时间:2021-05-18 13:05:17

标签: python animation discord command bots

我想做一个简单的插槽命令,如下所示:

@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| .

0 个答案:

没有答案