Shrewd 💫
Explore posts from serversSIASapphire - Imagine a framework
•Created by Shrewd 💫 on 9/25/2024 in #sapphire-support
why my ping.ts doesnt wanna run after being transpiled?
So my slash command doesnt wanna execute after its been transpiled to js even though after I did run it on ts-node, it worked without any issues.
10 replies
SIASapphire - Imagine a framework
•Created by Shrewd 💫 on 9/25/2024 in #sapphire-support
Using HMR in TS
So I am considering writing a bot in TS, but my question is, since sapphire supports it, how would I go over using it, like, in TS you have to transpile files to js but what after you make updates to the .ts files, will HMR detect it and reload or how does it look?
13 replies
SIASapphire - Imagine a framework
•Created by Shrewd 💫 on 9/18/2024 in #sapphire-support
Slash-Context menu commands with spaces?
Is there any way to create a slash command without dashes like "User Info" or something like it? Haven't tested yet but I want to know, and also if the uppercase will appear as well.
8 replies
SIASapphire - Imagine a framework
•Created by Shrewd 💫 on 9/16/2024 in #sapphire-support
Same command files but in different folders
So is sapphire like going to function well if I were for example have kick.js twice but one in admin folder and one in developer folder? Both set to deploy to different guilds?
26 replies
SIASapphire - Imagine a framework
•Created by Shrewd 💫 on 9/9/2024 in #sapphire-support
User App
Hey, does sapphire support user installable applications? And if yes, is there any guide or is it just pretty much the same?
5 replies
SIASapphire - Imagine a framework
•Created by Shrewd 💫 on 9/2/2024 in #sapphire-support
File Names
So I was told to ask this here; I am working on a slash command that is supposed to have the same name in multiple guilds but perform different functions, can I use the same name for the file names if they are in different folders for different guilds or? Hopefully that's understandable what i'm trying to ask. I have made a similar question before but this one is about whether the names can be the same of the files.
5 replies
SIASapphire - Imagine a framework
•Created by Shrewd 💫 on 8/5/2024 in #sapphire-support
Multiple guilds handling
Hi, so, I'm pretty new to this framework, done a couple of things, but tell me, how am I supposed to write entire getrole.js code that's supposed to retreive proper roles based on each guild, each guild = different roblox group, and It seems unimaginable on writing it all in one file, any suggestions?
8 replies
SIASapphire - Imagine a framework
•Created by Shrewd 💫 on 8/1/2024 in #sapphire-support
Permission check in other guild
How am I supposed to make it so for example I have Invite to MTF context menu that has to invite someone to MTF guild, like, it does its job, but my point is so no person can be invited unless they have Lieutenant+ in MTF guild, how am I supposed to make this permission check? (i'd appreciate if i were to be pinged upon reply)
55 replies
SIASapphire - Imagine a framework
•Created by Shrewd 💫 on 7/24/2024 in #sapphire-support
Multiple guilds
Any suggestions/advices on how to properly manage multiple guilds at once? How would I go over handling a command that has the same name and is supposed to be in few guilds but execute based on different roles etcetera? If I had to write it all in one script-file, it'd become such a mess.
Hopefully readers can comprehend it
4 replies
SIASapphire - Imagine a framework
•Created by Shrewd 💫 on 7/11/2024 in #sapphire-support
idhint & command id
Is sapphire framework supposed to assign command id to every command whether it is global or guild-only?
also, can we put idHints directly in the slash commands or not? if not, what do you suggest
8 replies