UndiedGFX
UndiedGFX
SIASapphire - Imagine a framework
Created by čamdžić on 8/17/2024 in #sapphire-support
drizzle orm
Never used drizzle tho
19 replies
SIASapphire - Imagine a framework
Created by čamdžić on 8/17/2024 in #sapphire-support
drizzle orm
We always recommended prisma
19 replies
SIASapphire - Imagine a framework
Created by čamdžić on 8/17/2024 in #sapphire-support
drizzle orm
If not, there is a cool package called cjstoesm just input all the files and it should do the job
19 replies
SIASapphire - Imagine a framework
Created by čamdžić on 8/17/2024 in #sapphire-support
drizzle orm
If yes, make sure whatever your compiler is, to compile the code to esm instead of cjs
19 replies
SIASapphire - Imagine a framework
Created by čamdžić on 8/17/2024 in #sapphire-support
drizzle orm
The thing is that drizzle-orm is using imports that can not be compiled to commonjs. Are you using typescript?
19 replies
SIASapphire - Imagine a framework
Created by čamdžić on 8/17/2024 in #sapphire-support
drizzle orm
Add the type: module in package.json
19 replies
SIASapphire - Imagine a framework
Created by čamdžić on 8/17/2024 in #sapphire-support
drizzle orm
The issue is clear
19 replies
SIASapphire - Imagine a framework
Created by Shrewd 💫 on 8/1/2024 in #sapphire-support
Permission check in other guild
"my" are you sure you dont have an OwnerOnly precondition as well wrapped up in the command?
55 replies
SIASapphire - Imagine a framework
Created by Shrewd 💫 on 8/1/2024 in #sapphire-support
Permission check in other guild
and what exactly is causing that
55 replies
SIASapphire - Imagine a framework
Created by Shrewd 💫 on 8/1/2024 in #sapphire-support
Permission check in other guild
it should be .cache.get
55 replies
SIASapphire - Imagine a framework
Created by Shrewd 💫 on 8/1/2024 in #sapphire-support
Permission check in other guild
according to the docs, <guilds>.get does not exist
55 replies
SIASapphire - Imagine a framework
Created by Shrewd 💫 on 8/1/2024 in #sapphire-support
Permission check in other guild
maybe try this again, the issue should not happen
55 replies
SIASapphire - Imagine a framework
Created by Shrewd 💫 on 8/1/2024 in #sapphire-support
Permission check in other guild
no, what i meant was djs should update the member roles cache when the role is removed
55 replies
SIASapphire - Imagine a framework
Created by Shrewd 💫 on 8/1/2024 in #sapphire-support
Permission check in other guild
even though it should remove the role from cache
55 replies
SIASapphire - Imagine a framework
Created by Shrewd 💫 on 8/1/2024 in #sapphire-support
Permission check in other guild
can you like try fetching roles before running the if, maybe discord.js didnt update the cache
55 replies
SIASapphire - Imagine a framework
Created by Shrewd 💫 on 8/1/2024 in #sapphire-support
Permission check in other guild
and about the "role remove", your code doesnt do anything like that, so i do not understand
55 replies
SIASapphire - Imagine a framework
Created by Shrewd 💫 on 8/1/2024 in #sapphire-support
Permission check in other guild
it should be guilds.cache.get and roles.cache.get
55 replies
SIASapphire - Imagine a framework
Created by Shrewd 💫 on 8/1/2024 in #sapphire-support
Permission check in other guild
these two lines, are obselete
const mtfGuild = this.container.client.guilds.get('1197963703069446295');
const lieutenantRole = mtfGuild.roles.get('1198010419500023809');
const mtfGuild = this.container.client.guilds.get('1197963703069446295');
const lieutenantRole = mtfGuild.roles.get('1198010419500023809');
55 replies
SIASapphire - Imagine a framework
Created by Shrewd 💫 on 8/1/2024 in #sapphire-support
Permission check in other guild
as i said
55 replies
SIASapphire - Imagine a framework
Created by Shrewd 💫 on 8/1/2024 in #sapphire-support
Permission check in other guild
the same should be done for RoleManager and ChannelManager instances
55 replies