sapphire-support
discordjs-support
old-sapphire-support
old-discordjs-support
old-application-commands-and-interactions
Let's users have custom folders for pieces
SapphireClientOptions
.piece.aliases is not iterable
interaction-handlers
folder instead.guild commands not showing in command lookup
custom prefix
how would you go about logging shard creation in sapphire?
What is a Piece?
GuildIds Array Empty = global command?
[]
['']
undefined
...[]
= global
undefined
= global
null
= global
['']
= invalid 🙄...How necessary (in practice) is it to set idhints?
idhints
?How do you initialise a UserSelectMenu?
selects
turn off dev mode?
NODE_ENV
as production
Very intense application command fetching
{"timeToReset":1100,"limit":50,"method":"GET","hash":"Global(GET:/applications/:id/commands)","url":"https://discord.com/api/v10/applications/ID/commands?with_localizations=true","route":"/applications/:id/commands","majorParameter":"global","global":true}
...npm install @sapphire/framework@pr-598
npm install @sapphire/framework@pr-598
Use preconditions outside of the command class
import { someCondition } from '../lib/utils/someCondition';
if (someCondition) return;
import { someCondition } from '../lib/utils/someCondition';
if (someCondition) return;
Setup bot hosting with SparkedHost
How can I effectively use the `PaginatedMessage` function?
``js
const queue = this.container.client.player.getQueue(interaction.guild!);
if (!queue) return interaction.reply({ content:
${this.container.client.dev.error} | I am not in a voice channel`, ephemeral: true });
if (!queue.tracks || !queue.current)...sapphire steals the CPU
Application Commands
Command alias for slash commands?
Adding a command to a guild after client is ready.