Fabi
Fabi
SIASapphire - Imagine a framework
Created by Fabi on 3/23/2024 in #discordjs-support
Apply Overwrites in a voicechannel
No description
8 replies
SIASapphire - Imagine a framework
Created by Fabi on 3/22/2024 in #sapphire-support
Translated Subcommand does not register because a error
2024-03-22 19:16:49 - INFO - ApplicationCommandRegistries: Initializing...
2024-03-22 19:16:49 - ERROR - Encountered error while handling the command application command registry for command "language" at path "K:\JS Projects\rubyvoice-bot\dist\commands\settings\language.command.js" ExpectedConstraintError > s.string.regex
2024-03-22 19:16:49 - ERROR - Invalid string format
2024-03-22 19:16:49 - ERROR -
2024-03-22 19:16:49 - ERROR - Expected: expected /^[\p{Ll}\p{Lm}\p{Lo}\p{N}\p{sc=Devanagari}\p{sc=Thai}_-]+$/u.test(expected) to be true
2024-03-22 19:16:49 - ERROR -
2024-03-22 19:16:49 - ERROR - Received:
2024-03-22 19:16:49 - ERROR - | 'Sprache'
2024-03-22 19:16:49 - ERROR -
2024-03-22 19:16:49 - ERROR - at Object.run (K:\JS Projects\rubyvoice-bot\node_modules\@sapphire\shapeshift\dist\cjs\index.cjs:2350:64)
2024-03-22 19:16:49 - ERROR - at K:\JS Projects\rubyvoice-bot\node_modules\@sapphire\shapeshift\dist\cjs\index.cjs:939:67
2024-03-22 19:16:49 - ERROR - at Array.reduce (<anonymous>)
2024-03-22 19:16:49 - ERROR - at _StringValidator.parse (K:\JS Projects\rubyvoice-bot\node_modules\@sapphire\shapeshift\dist\cjs\index.cjs:939:29)
2024-03-22 19:16:49 - ERROR - at validateName (K:\JS Projects\rubyvoice-bot\node_modules\@discordjs\builders\dist\index.js:1578:17)
2024-03-22 19:16:49 - ERROR - at MixedClass.setNameLocalization (K:\JS Projects\rubyvoice-bot\node_modules\@discordjs\builders\dist\index.js:1707:5)
2024-03-22 19:16:49 - ERROR - at MixedClass.setNameLocalizations (K:\JS Projects\rubyvoice-bot\node_modules\@discordjs\builders\dist\index.js:1723:12)
2024-03-22 19:16:49 - ERROR - at applyNameLocalizedBuilder (K:\JS Projects\rubyvoice-bot\node_modules\@sapphire\plugin-i18next\dist\cjs\lib\functions.cjs:91:40)
2024-03-22 19:16:49 - ERROR - at applyLocalizedBuilder (K:\JS Projects\rubyvoice-bot\node_modules\@sapphire\plugin-i18next\dist\cjs\lib\functions.cjs:101:3)
2024-03-22 19:16:49 - ERROR - at K:\JS Projects\rubyvoice-bot\dist\commands\settings\language.command.js:19:99
2024-03-22 19:16:49 - INFO - ApplicationCommandRegistries: Initializing...
2024-03-22 19:16:49 - ERROR - Encountered error while handling the command application command registry for command "language" at path "K:\JS Projects\rubyvoice-bot\dist\commands\settings\language.command.js" ExpectedConstraintError > s.string.regex
2024-03-22 19:16:49 - ERROR - Invalid string format
2024-03-22 19:16:49 - ERROR -
2024-03-22 19:16:49 - ERROR - Expected: expected /^[\p{Ll}\p{Lm}\p{Lo}\p{N}\p{sc=Devanagari}\p{sc=Thai}_-]+$/u.test(expected) to be true
2024-03-22 19:16:49 - ERROR -
2024-03-22 19:16:49 - ERROR - Received:
2024-03-22 19:16:49 - ERROR - | 'Sprache'
2024-03-22 19:16:49 - ERROR -
2024-03-22 19:16:49 - ERROR - at Object.run (K:\JS Projects\rubyvoice-bot\node_modules\@sapphire\shapeshift\dist\cjs\index.cjs:2350:64)
2024-03-22 19:16:49 - ERROR - at K:\JS Projects\rubyvoice-bot\node_modules\@sapphire\shapeshift\dist\cjs\index.cjs:939:67
2024-03-22 19:16:49 - ERROR - at Array.reduce (<anonymous>)
2024-03-22 19:16:49 - ERROR - at _StringValidator.parse (K:\JS Projects\rubyvoice-bot\node_modules\@sapphire\shapeshift\dist\cjs\index.cjs:939:29)
2024-03-22 19:16:49 - ERROR - at validateName (K:\JS Projects\rubyvoice-bot\node_modules\@discordjs\builders\dist\index.js:1578:17)
2024-03-22 19:16:49 - ERROR - at MixedClass.setNameLocalization (K:\JS Projects\rubyvoice-bot\node_modules\@discordjs\builders\dist\index.js:1707:5)
2024-03-22 19:16:49 - ERROR - at MixedClass.setNameLocalizations (K:\JS Projects\rubyvoice-bot\node_modules\@discordjs\builders\dist\index.js:1723:12)
2024-03-22 19:16:49 - ERROR - at applyNameLocalizedBuilder (K:\JS Projects\rubyvoice-bot\node_modules\@sapphire\plugin-i18next\dist\cjs\lib\functions.cjs:91:40)
2024-03-22 19:16:49 - ERROR - at applyLocalizedBuilder (K:\JS Projects\rubyvoice-bot\node_modules\@sapphire\plugin-i18next\dist\cjs\lib\functions.cjs:101:3)
2024-03-22 19:16:49 - ERROR - at K:\JS Projects\rubyvoice-bot\dist\commands\settings\language.command.js:19:99
This command does not register. What did i wrong?
5 replies
SIASapphire - Imagine a framework
Created by Fabi on 3/18/2024 in #discordjs-support
Create a category and a channel in the category
No description
5 replies
SIASapphire - Imagine a framework
Created by Fabi on 3/17/2024 in #sapphire-support
Default Permissions
Hello! As i do slash commands only, is it possible to set the Default Permission, so that the guild admins can override perms if they want?
8 replies
SIASapphire - Imagine a framework
Created by Fabi on 3/14/2024 in #sapphire-support
Command is not registering
i have a issue with register a translated command.. Current code is
import { ApplyOptions } from '@sapphire/decorators';
import { applyLocalizedBuilder } from '@sapphire/plugin-i18next';
import { ChatInputCommand, Command } from '@sapphire/framework';

@ApplyOptions<Command.Options>({
description: 'ping pong'
})
export class UserCommand extends Command {
public override registerApplicationCommands(registry: ChatInputCommand.Registry) {
registry.registerChatInputCommand(
(builder) =>
applyLocalizedBuilder(builder, 'ping:CommandName', 'ping:CommandDescription')
);
}

public override async chatInputRun(interaction: Command.ChatInputCommandInteraction) {
await interaction.reply({
content: 'Pong!',
ephemeral: true
});

}
}
import { ApplyOptions } from '@sapphire/decorators';
import { applyLocalizedBuilder } from '@sapphire/plugin-i18next';
import { ChatInputCommand, Command } from '@sapphire/framework';

@ApplyOptions<Command.Options>({
description: 'ping pong'
})
export class UserCommand extends Command {
public override registerApplicationCommands(registry: ChatInputCommand.Registry) {
registry.registerChatInputCommand(
(builder) =>
applyLocalizedBuilder(builder, 'ping:CommandName', 'ping:CommandDescription')
);
}

public override async chatInputRun(interaction: Command.ChatInputCommandInteraction) {
await interaction.reply({
content: 'Pong!',
ephemeral: true
});

}
}
35 replies
SIASapphire - Imagine a framework
Created by Fabi on 3/14/2024 in #sapphire-support
Slashcommand Option Translation
Hello! How do i translate slashcommand options?, didnt saw a example. Thanks!
4 replies