secre
Explore posts from serversSIASapphire - Imagine a framework
•Created by delios on 11/15/2024 in #sapphire-support
Constantly getting "The application did not respond"
Or you can just use
PermissionFlagsBits
from discord.js
const to get it. Way more reliable
member?.permissions.has(PermissionFlagsBits.Administrator)
like this41 replies
SIASapphire - Imagine a framework
•Created by TweenkySuwaru on 10/15/2024 in #sapphire-support
Subcommand in Direct Messages even with guildIds option
probably will add lint to project, would be great in the distance to not make stupid mistakes like this :derp:
thanks for help and your time I guess. Pretty awkward to ask someone to help and found out that issue was because of a single comma :WAHHHHHHHHHHHHH:
54 replies
SIASapphire - Imagine a framework
•Created by TweenkySuwaru on 10/15/2024 in #sapphire-support
Subcommand in Direct Messages even with guildIds option
I see yes. And it also occurs in my snipper. I probably should fix that in all commands :||| I wonder why TS gives no error about this comma
54 replies
SIASapphire - Imagine a framework
•Created by TweenkySuwaru on 10/15/2024 in #sapphire-support
Subcommand in Direct Messages even with guildIds option
I can't because sometimes I need commands that users can use in dms too. As ticket command (i don't know why I even include it in repro sample, my bad)
54 replies
SIASapphire - Imagine a framework
•Created by TweenkySuwaru on 10/15/2024 in #sapphire-support
Subcommand in Direct Messages even with guildIds option
it's kinda interesting because I created snippet for commands at the start and used it for all others. I wanna check if others commands have the same issue
54 replies
SIASapphire - Imagine a framework
•Created by TweenkySuwaru on 10/15/2024 in #sapphire-support
Subcommand in Direct Messages even with guildIds option
54 replies
SIASapphire - Imagine a framework
•Created by TweenkySuwaru on 10/15/2024 in #sapphire-support
Subcommand in Direct Messages even with guildIds option
Yes. You can check that in this file
54 replies
SIASapphire - Imagine a framework
•Created by TweenkySuwaru on 10/15/2024 in #sapphire-support
Subcommand in Direct Messages even with guildIds option
54 replies
SIASapphire - Imagine a framework
•Created by TweenkySuwaru on 10/15/2024 in #sapphire-support
Subcommand in Direct Messages even with guildIds option
54 replies
SIASapphire - Imagine a framework
•Created by TweenkySuwaru on 10/15/2024 in #sapphire-support
Subcommand in Direct Messages even with guildIds option
It's loading tokens so I guess guildId works too... But yeah sure, give me a sec
54 replies
SIASapphire - Imagine a framework
•Created by TweenkySuwaru on 10/15/2024 in #sapphire-support
Subcommand in Direct Messages even with guildIds option
54 replies
SIASapphire - Imagine a framework
•Created by TweenkySuwaru on 10/15/2024 in #sapphire-support
Subcommand in Direct Messages even with guildIds option
Done! Repo: https://github.com/shysecre/test-sample-sapphire
1. Clone.
pnpm install
in main directory. pnpm
because I use workspaces by pnpm. I dont know if other package managers will work :Shruge:
2. Fill in dev config in config/dev.json
with tokens & guild id
3. Maybe check out redis settings if they will overlap with yours. I use docker-compose
4. pnpm build
, pnpm start:devmod
Also I have a .tasks
for vscode so you can easily start "watch" for all packages. Ctrl + Shift + P
-> Run Tasks
-> watch:all
and then if restart is needed pnpm start:devmod
I guess that's all :eeeh: Also I removed .setContexts
for commands in yume-bot
. And this commands still registering globally.
setup
function can be found in packages/common/src/util/setup.ts
In packages
folder I also have sapphire-utilities stuff where I register shared preconditions, listeners, utilities among all bots. I dont think that will somehow effect commands, but yeah54 replies
SIASapphire - Imagine a framework
•Created by TweenkySuwaru on 10/15/2024 in #sapphire-support
Subcommand in Direct Messages even with guildIds option
Writing from my main acc.
Currently working on creating repro sample. I read in #cant declare container items that you need to include some stuff in
.npmrc
config for sapphire to work properly when using pnpm
. On my main repo I don't get those errors about packages not found when declaring stuff. But now when I'm creating sample I got one error. Could it be potential problem why commands registering weird? :hmmm:54 replies
SIASapphire - Imagine a framework
•Created by Wenwen on 10/25/2024 in #sapphire-support
New component under a PaginatedMessage
:okie:
9 replies
SIASapphire - Imagine a framework
•Created by Wenwen on 10/25/2024 in #sapphire-support
New component under a PaginatedMessage
tbh this thing is very flexible :okie:
9 replies
SIASapphire - Imagine a framework
•Created by Wenwen on 10/25/2024 in #sapphire-support
New component under a PaginatedMessage
I think you want to use actions
9 replies
SIASapphire - Imagine a framework
•Created by WeeskyBDW on 7/24/2024 in #sapphire-support
Bulk upgrade commands to remove unregistered ones
iirc this only works if you specify guild id. if you want to setup app commands (global) you need to first remove them all and then update with current state
at least that's how I done so...
7 replies
SIASapphire - Imagine a framework
•Created by secre on 6/13/2024 in #sapphire-support
Timezone option for Scheduled Tasks
In Ukraine we have that thing when we change our timezone to UTC+3 (from UTC+2) in summer, and then back to UTC+2 in October iirc.
Thanks for detailed info on that topic!
6 replies
SIASapphire - Imagine a framework
•Created by secre on 6/9/2024 in #sapphire-support
Attachment drop box
The thing is that we have a command
/role manage
that responds with role stats, and some manage buttons like change name, color, and icon as well. so another command doesn't satisfy our needs in this situation
probably wanna make a command if we will face some problems with current implementation. but tbh it's not that bad rn. I've done it the good way so it's easy for user to just do their thing and eventually get icon in place.7 replies
SIASapphire - Imagine a framework
•Created by secre on 6/9/2024 in #sapphire-support
Attachment drop box
:( sad that we don't have "Attachment" type for collectors with same drop box. Would be nice. Will go with message collector then 👍🏿
7 replies