You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 26, 2021. It is now read-only.
@inter_client.slash_command(guild_ids=bonbot_support)asyncdefemoji(ctx):
pass@emoji.sub_command(description="steal an emoji with an option to lock it to a role", options=[Option("emoji", "an emoji to steal", OptionType.STRING, required=True),Option("role", "A role to lock this emoji to. (User must have this role to use emoji)", OptionType.ROLE)], guild_ids=bonbot_support)@slash_commands.guild_only()@slash_commands.has_permissions(manage_emojis=True)asyncdefsteal(self, ctx, emoji, role):
c=commands.EmojiConverter() # create instanceemoji_final=awaitc.convert(emoji)
# fetch the emoji asset and read it as bytes.emoji_bytes=awaitemoji_final.read()
emoji_roles= [role]
awaitctx.guild.create_custom_emoji(name=emoji_final.name, image=emoji_bytes, roles=emoji_roles)
awaitctx.send("Created emoji!", ephemeral=True)
I get this error when I run this code, I even added print("number") after every step and it doesn't print anything. Not sure what is happening, I have asked for help in several servers and nobody can figure it out. When I run the same code as a regular command, (removing the components parts) it works flawlessly. Full error: https://mystb.in/UrwPutsGarlic.apache
The text was updated successfully, but these errors were encountered:
I get this error when I run this code, I even added
print("number")
after every step and it doesn't print anything. Not sure what is happening, I have asked for help in several servers and nobody can figure it out. When I run the same code as a regular command, (removing the components parts) it works flawlessly. Full error: https://mystb.in/UrwPutsGarlic.apacheThe text was updated successfully, but these errors were encountered: