TypeError: object of type 'ActionRow' has no len()
v1s1t0r999 opened this issue · comments
Sorta L⨀SŦ commented
NOTE: ONLY HAPPENS IN COGS
The Code:
from dislash import *
@commands.command()
async def cmd(self,ctx,arg):
row = ActionRow(
Button(style=ButtonStyle.green, label="My Label Here!!", custom_id="tx")
)
def check(inter):
return inter.author == ctx.author and inter.author.guild_permissions.manage_emojis
try:
# SOME SHIT HERE!!
except:
# COUNTER
Precise Output in the Terminal:
File "/MY_DIRS/python/lib/python3.9/site-packages/dislash/application_commands/_modifications/old.py", line 105, in send_with_components
if len(components) > 5:
TypeError: object of type 'ActionRow' has no len()
EDIT: Markdown changes
Jan commented
Sorta L⨀SŦ commented
So is it:
await ctx.send("A Message With Buttons using dislash",components = [row])