Slime
Slime
Explore posts from servers
SIASapphire - Imagine a framework
Created by Slime on 5/21/2024 in #discordjs-support
Typing - Question message
Okay so using npm instead of yarn worked, I was on latest v4 but it may have been my yarn lock file
8 replies
SIASapphire - Imagine a framework
Created by Slime on 5/21/2024 in #discordjs-support
Typing - Question message
The code is
export function sendLoadingMessage(message: Message): Promise<typeof message> {
return send(message, { embeds: [new EmbedBuilder().setDescription(pickRandom(RandomLoadingMessage)).setColor('#FF0000')] });
}
export function sendLoadingMessage(message: Message): Promise<typeof message> {
return send(message, { embeds: [new EmbedBuilder().setDescription(pickRandom(RandomLoadingMessage)).setColor('#FF0000')] });
}
I think I took it off an example And import { EmbedBuilder, Guild, Message, User } from 'discord.js'; Sapphire related libraries are
"@sapphire/cli": "^1.9.3",
"@sapphire/eslint-config": "^5.0.5",
"@sapphire/prettier-config": "^2.0.0",
"@sapphire/ts-config": "^5.0.1",
"@sapphire/cli": "^1.9.3",
"@sapphire/eslint-config": "^5.0.5",
"@sapphire/prettier-config": "^2.0.0",
"@sapphire/ts-config": "^5.0.1",
It's been a while but I had some time to check this
8 replies
SIASapphire - Imagine a framework
Created by Slime on 5/21/2024 in #discordjs-support
Typing - Question message
But it's a generic send message function that takes in a message and embeds
8 replies
SIASapphire - Imagine a framework
Created by Slime on 5/21/2024 in #discordjs-support
Typing - Question message
I'm at work currently but I'll send it when I'm home!
8 replies
SIASapphire - Imagine a framework
Created by Slime on 2/13/2024 in #sapphire-support
Implement paginator , selection
Cause each reply will be different data so I would like to keep it in a class but I will see how I can utilize this
7 replies
SIASapphire - Imagine a framework
Created by Slime on 2/13/2024 in #sapphire-support
Implement paginator , selection
I will check it out thank you
7 replies
SIASapphire - Imagine a framework
Created by Slime on 2/13/2024 in #sapphire-support
Implement paginator , selection
so I have button 1 - swap to selection menu 1 button 2 - swap to selection menu 2 button 3 - swap to selection menu 3 backward - goes back in selection menu pages which is currently selected forward - goes forward
7 replies
SIASapphire - Imagine a framework
Created by Slime on 2/6/2024 in #sapphire-support
Precondition i18n
Okay I re-read it and it makes sense, thank you. To sum it up just move the translation to the listeners instead and have a hardcoded string here just to know what error.
15 replies
SIASapphire - Imagine a framework
Created by Slime on 2/6/2024 in #sapphire-support
Precondition i18n
But I guess it doesn't really matter cause I can just send a string as it's 3 functions, it was just trying to write less code for not much gain
15 replies
SIASapphire - Imagine a framework
Created by Slime on 2/6/2024 in #sapphire-support
Precondition i18n
No description
15 replies
SIASapphire - Imagine a framework
Created by Slime on 2/6/2024 in #sapphire-support
Precondition i18n
if(error.identifier === CommandDenied) {

}
if(error.identifier === CommandDenied) {

}
Like I have a chatInputCommandDenied but I would have to extend all 3 then I assume?
15 replies
SIASapphire - Imagine a framework
Created by Slime on 2/6/2024 in #sapphire-support
Precondition i18n
Cause it seems in that example that the actual error is sent there and then it's parsed by something else
15 replies
SIASapphire - Imagine a framework
Created by Slime on 2/6/2024 in #sapphire-support
Precondition i18n
Yeah I got that part it was more like trying to do one function so I don't have to like get the translation in each message
15 replies
SIASapphire - Imagine a framework
Created by Slime on 2/6/2024 in #sapphire-support
Precondition i18n
Get the localized string
15 replies
SIASapphire - Imagine a framework
Created by Slime on 2/6/2024 in #sapphire-support
Precondition i18n
Oh to translate it
15 replies
SIASapphire - Imagine a framework
Created by Slime on 12/5/2023 in #sapphire-support
Sapphire eslint-config
I forgot the first step of troubleshooting, sorry
6 replies
SIASapphire - Imagine a framework
Created by Slime on 12/1/2023 in #sapphire-support
Tooling question
I will check it out though
9 replies
SIASapphire - Imagine a framework
Created by Slime on 12/1/2023 in #sapphire-support
Tooling question
I see, I thought the IDE was using it realtime
9 replies
SIASapphire - Imagine a framework
Created by Slime on 12/1/2023 in #sapphire-support
Tooling question
So sapphire also contains eslint? So I don't have to add that + plugin node right?
9 replies
SIASapphire - Imagine a framework
Created by Slime on 11/2/2023 in #sapphire-support
Maze error - paginated message
so adding the intents helped but not sure which one actually solved it
60 replies