jeelzzz - is there any way to export multiple thi...
is there any way to export multiple things from a command / listener's file? like can i name the export something like
command
and it'll let me export other stuff without breakingJ
jeelzzz•527d ago
looks like it should be supported? when i add a function as an export though it throws
TypeError: piece.aliases is not iterable
F
Favna•527d ago
If i remember correctly if you keep commands in the commands folder and listeners in the listeners folder it's fine. The error you get is by trying to mix listeners (who don't have aliases) in commands (who do) and so piece.aliases is not iterable for listeners.
Welcome to the Sapphire Discord server! The next-gen object-oriented Discord.js bot framework can be found here.
2.2KMembers
View on DiscordWant results from more Discord servers?
More PostsMcDefault - Hello y'all Im trying to follow the c...Hello y'all> Im trying to follow the create basic slash cmd guide, but the example code is giving anchmod - does sapphire support djs 14?does sapphire support djs 14?RuiNtD - How to ensure removed application command...How to ensure removed commands are unregistered?WhacK - I upgraded my existing sapphire bot to typ...I upgraded my existing sapphire bot to typescript and altered some things. My commands are not beingArarou - Is this smth fixable? It's never done thi...Is this smth fixable? It's never done this before and I don't know whats causing it.Fractune - Hello, I'd like to know why my `if` jum...Hello, I'd like to know why my `if` jumps straight to `else` while `!isNaN(parseInt(tags.slice(-1)[0Abdo Hosnie - it doesn't play anything (it doesn't play anything : (DelxHQ - Is there anyway I can defer all of my com...Is there anyway I can defer all of my commands?