Swiizyy
Swiizyy
SIASapphire - Imagine a framework
Created by mk3ext on 9/28/2024 in #sapphire-support
addStringOption applyLocalizedBuilder
createLocalizedChoice 🫣
5 replies
SIASapphire - Imagine a framework
Created by ShowCast on 9/12/2024 in #sapphire-support
Manual Scheduled Task Method Arg Number mismatch with documentation
5 replies
SIASapphire - Imagine a framework
Created by simnJS on 8/20/2024 in #sapphire-support
Using sapphire paginator is it possible to customize the pages names ?
oui ca marche vraiment bien
60 replies
SIASapphire - Imagine a framework
Created by simnJS on 8/20/2024 in #sapphire-support
Using sapphire paginator is it possible to customize the pages names ?
Ah oui mdr
60 replies
SIASapphire - Imagine a framework
Created by simnJS on 8/20/2024 in #sapphire-support
Using sapphire paginator is it possible to customize the pages names ?
bien vu mdr
60 replies
SIASapphire - Imagine a framework
Created by simnJS on 8/20/2024 in #sapphire-support
Using sapphire paginator is it possible to customize the pages names ?
ah beh oui mdr
60 replies
SIASapphire - Imagine a framework
Created by simnJS on 8/20/2024 in #sapphire-support
Using sapphire paginator is it possible to customize the pages names ?
Faut que tu setup sa avant que sa appelle client.login :/
60 replies
SIASapphire - Imagine a framework
Created by simnJS on 8/20/2024 in #sapphire-support
Using sapphire paginator is it possible to customize the pages names ?
No description
60 replies
SIASapphire - Imagine a framework
Created by simnJS on 8/20/2024 in #sapphire-support
Using sapphire paginator is it possible to customize the pages names ?
oui 😂
60 replies
SIASapphire - Imagine a framework
Created by simnJS on 8/20/2024 in #sapphire-support
Using sapphire paginator is it possible to customize the pages names ?
PaginatedMessage.wrongUserInteractionReply = (targetUser) => ({
content: `These buttons are only for ${userMention(
targetUser.id
)}. Press them as much as you want, but I won't do anything with your clicks.`,
ephemeral: true,
allowedMentions: { users: [], roles: [] }
});
PaginatedMessage.wrongUserInteractionReply = (targetUser) => ({
content: `These buttons are only for ${userMention(
targetUser.id
)}. Press them as much as you want, but I won't do anything with your clicks.`,
ephemeral: true,
allowedMentions: { users: [], roles: [] }
});
60 replies
SIASapphire - Imagine a framework
Created by simnJS on 8/20/2024 in #sapphire-support
Using sapphire paginator is it possible to customize the pages names ?
ouais c'est pas mal 🙂
60 replies
SIASapphire - Imagine a framework
Created by simnJS on 8/20/2024 in #sapphire-support
Using sapphire paginator is it possible to customize the pages names ?
c'est vrai qu'il faut chercher un peut mdr
60 replies
SIASapphire - Imagine a framework
Created by simnJS on 8/20/2024 in #sapphire-support
Using sapphire paginator is it possible to customize the pages names ?
j'ai le meme mdr vive le traducteur mdr
60 replies
SIASapphire - Imagine a framework
Created by simnJS on 8/20/2024 in #sapphire-support
Using sapphire paginator is it possible to customize the pages names ?
Pas de soucis mdr je viens de voir que tu est francais 😂
60 replies
SIASapphire - Imagine a framework
Created by simnJS on 8/20/2024 in #sapphire-support
Using sapphire paginator is it possible to customize the pages names ?
Oh yes, sorry, I'm a little tired. 😅
60 replies
SIASapphire - Imagine a framework
Created by simnJS on 8/20/2024 in #sapphire-support
Using sapphire paginator is it possible to customize the pages names ?
import { PaginatedMessage } from "@sapphire/discord.js-utilities";
import { Command } from "@sapphire/framework";
import { inlineCodeBlock } from "@sapphire/utilities";

const commandsPerCategories = new Map<string, Command[]>();

const paginatedMessage = new PaginatedMessage();

paginatedMessage.setSelectMenuOptions((pageIndex) => {
const category = Array.from(commandsPerCategories.keys())[pageIndex];
return {
label: category,
description: `View the commands in the ${category} category`,
};
});

for (const [category, commands] of commandsPerCategories.entries()) {
paginatedMessage //
.addPageEmbed((embed) =>
embed //
.setTitle(category)
.setDescription(
commands
.map(
(command) =>
`• ${inlineCodeBlock(command.name)} → ${command.description}`
)
.join("\n")
)
);
}
import { PaginatedMessage } from "@sapphire/discord.js-utilities";
import { Command } from "@sapphire/framework";
import { inlineCodeBlock } from "@sapphire/utilities";

const commandsPerCategories = new Map<string, Command[]>();

const paginatedMessage = new PaginatedMessage();

paginatedMessage.setSelectMenuOptions((pageIndex) => {
const category = Array.from(commandsPerCategories.keys())[pageIndex];
return {
label: category,
description: `View the commands in the ${category} category`,
};
});

for (const [category, commands] of commandsPerCategories.entries()) {
paginatedMessage //
.addPageEmbed((embed) =>
embed //
.setTitle(category)
.setDescription(
commands
.map(
(command) =>
`• ${inlineCodeBlock(command.name)} → ${command.description}`
)
.join("\n")
)
);
}
60 replies
SIASapphire - Imagine a framework
Created by simnJS on 8/20/2024 in #sapphire-support
Using sapphire paginator is it possible to customize the pages names ?
Maybe like that, right? @simnJS
import { PaginatedMessage } from "@sapphire/discord.js-utilities";
import { Command } from "@sapphire/framework";
import { inlineCodeBlock } from "@sapphire/utilities";

const commandsPerCategories = new Map<string, Command[]>();

const paginatedMessage = new PaginatedMessage({
selectMenuOptions: (pageIndex) => {
const category = Array.from(commandsPerCategories.keys())[pageIndex];
return {
label: category,
description: `View the commands in the ${category} category`,
};
},
});

for (const [category, commands] of commandsPerCategories.entries()) {
paginatedMessage //
.addPageEmbed((embed) =>
embed //
.setTitle(category)
.setDescription(
commands
.map(
(command) =>
`• ${inlineCodeBlock(command.name)} → ${command.description}`
)
.join("\n")
)
);
}
import { PaginatedMessage } from "@sapphire/discord.js-utilities";
import { Command } from "@sapphire/framework";
import { inlineCodeBlock } from "@sapphire/utilities";

const commandsPerCategories = new Map<string, Command[]>();

const paginatedMessage = new PaginatedMessage({
selectMenuOptions: (pageIndex) => {
const category = Array.from(commandsPerCategories.keys())[pageIndex];
return {
label: category,
description: `View the commands in the ${category} category`,
};
},
});

for (const [category, commands] of commandsPerCategories.entries()) {
paginatedMessage //
.addPageEmbed((embed) =>
embed //
.setTitle(category)
.setDescription(
commands
.map(
(command) =>
`• ${inlineCodeBlock(command.name)} → ${command.description}`
)
.join("\n")
)
);
}
60 replies
SIASapphire - Imagine a framework
Created by simnJS on 8/20/2024 in #sapphire-support
Using sapphire paginator is it possible to customize the pages names ?
@simnJS you can do it like this
import { PaginatedMessage } from '@sapphire/discord.js-utilities';

PaginatedMessage.selectMenuOptions = (pageIndex) => ({
label: `Go to page: ${pageIndex}`,
description: 'This is a description'
});

import { PaginatedMessage } from '@sapphire/discord.js-utilities';

PaginatedMessage.selectMenuOptions = (pageIndex) => ({
label: `Go to page: ${pageIndex}`,
description: 'This is a description'
});

60 replies
SIASapphire - Imagine a framework
Created by Daniel Passos on 12/21/2023 in #sapphire-support
error TS6053: File '@sapphire/ts-config' not found.
4 replies
SIASapphire - Imagine a framework
Created by ShowCast on 9/7/2023 in #sapphire-support
i18n options are not considered
Thank you very much
29 replies