secre
secre
Explore posts from servers
SIASapphire - 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 this
41 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
No description
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
https://www.npmjs.com/package/config and its on 52 line of package.json "config": "^3.3.12",
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 yeah
54 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
DIdiscord.js - Imagine ❄
Created by bunningtonfoot on 7/3/2024 in #djs-questions
Randomly Started Happening
I was betting on that with doubt, like why you will update smth that break other thing, lmao. But I guess thats why coding is fun, ty for help!
25 replies
DIdiscord.js - Imagine ❄
Created by bunningtonfoot on 7/3/2024 in #djs-questions
Randomly Started Happening
I have like 6 bots running, and they all have same error, maybe discord broke something?... Anyway i'll check if something in my end broken
25 replies
DIdiscord.js - Imagine ❄
Created by bunningtonfoot on 7/3/2024 in #djs-questions
Randomly Started Happening
Same error for me. The thing is bot state doesn't changed for 2 month and everything was okay. Started happening literally 30 minutes ago
25 replies