Fabi
Fabi
SIASapphire - Imagine a framework
Created by Fabi on 3/23/2024 in #discordjs-support
Apply Overwrites in a voicechannel
ok nevermind, it just dont work how i do that
8 replies
SIASapphire - Imagine a framework
Created by Fabi on 3/23/2024 in #discordjs-support
Apply Overwrites in a voicechannel
why does allow work and deny not?
8 replies
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/23/2024 in #discordjs-support
Apply Overwrites in a voicechannel
and that without removing other overrides, simply add/update. In this case add
8 replies
SIASapphire - Imagine a framework
Created by Fabi on 3/23/2024 in #discordjs-support
Apply Overwrites in a voicechannel
i dont know how to apply multiple overrides at once
8 replies
SIASapphire - Imagine a framework
Created by Fabi on 3/23/2024 in #discordjs-support
Apply Overwrites in a voicechannel
let channelOverwrites = newChannel.permissionOverwrites.cache;
for (const blockedUser of sessionBlockedUsers!) {
const userId = blockedUser;

}
let channelOverwrites = newChannel.permissionOverwrites.cache;
for (const blockedUser of sessionBlockedUsers!) {
const userId = blockedUser;

}
related part
8 replies
SIASapphire - Imagine a framework
Created by Fabi on 3/22/2024 in #sapphire-support
Translated Subcommand does not register because a error
ahhh, found out! was a space and because not lowercase
5 replies
SIASapphire - Imagine a framework
Created by Fabi on 3/22/2024 in #sapphire-support
Translated Subcommand does not register because a error
Related code:
import { Subcommand } from '@sapphire/plugin-subcommands';
import { PermissionFlagsBits, type SlashCommandBuilder } from 'discord.js';
import { applyLocalizedBuilder } from '@sapphire/plugin-i18next';
import { ApplyOptions } from '@sapphire/decorators';

@ApplyOptions<Subcommand.Options>({
runIn: ["GUILD_ANY"],
requiredClientPermissions: [PermissionFlagsBits.EmbedLinks, PermissionFlagsBits.SendMessages],
})
export class SettingsCommands extends Subcommand {
public constructor(context: Subcommand.LoaderContext, options: Subcommand.Options) {
super(context, {
...options,
name: 'language',
subcommands: [
{ name: 'list', chatInputRun: 'chatInputLanguageList' },
{ name: 'set', chatInputRun: 'chatInputLanguageSet' },
{ name: 'current', chatInputRun: 'chatInputLanguageCurrent' }
]
});
}

override registerApplicationCommands(registry: Subcommand.Registry) {
registry.registerChatInputCommand((builder: SlashCommandBuilder) =>
applyLocalizedBuilder(builder, 'language:CommandName', 'language:CommandDescription').setDefaultMemberPermissions(PermissionFlagsBits.Administrator)
.addSubcommand((command) =>
applyLocalizedBuilder(command, 'language:languageSet', 'language:languageSetDescription')
.addStringOption((option) =>
applyLocalizedBuilder(option, 'language:languageSetOption', 'language:languageSetOptionDescription')
)
)
.addSubcommand((command) =>
applyLocalizedBuilder(command, 'language:languageList', 'language:languageListDescription')
)
.addSubcommand((command) =>
applyLocalizedBuilder(command, 'language:languageCurrent', 'language:languageCurrentDescription')
)
);
}
}
import { Subcommand } from '@sapphire/plugin-subcommands';
import { PermissionFlagsBits, type SlashCommandBuilder } from 'discord.js';
import { applyLocalizedBuilder } from '@sapphire/plugin-i18next';
import { ApplyOptions } from '@sapphire/decorators';

@ApplyOptions<Subcommand.Options>({
runIn: ["GUILD_ANY"],
requiredClientPermissions: [PermissionFlagsBits.EmbedLinks, PermissionFlagsBits.SendMessages],
})
export class SettingsCommands extends Subcommand {
public constructor(context: Subcommand.LoaderContext, options: Subcommand.Options) {
super(context, {
...options,
name: 'language',
subcommands: [
{ name: 'list', chatInputRun: 'chatInputLanguageList' },
{ name: 'set', chatInputRun: 'chatInputLanguageSet' },
{ name: 'current', chatInputRun: 'chatInputLanguageCurrent' }
]
});
}

override registerApplicationCommands(registry: Subcommand.Registry) {
registry.registerChatInputCommand((builder: SlashCommandBuilder) =>
applyLocalizedBuilder(builder, 'language:CommandName', 'language:CommandDescription').setDefaultMemberPermissions(PermissionFlagsBits.Administrator)
.addSubcommand((command) =>
applyLocalizedBuilder(command, 'language:languageSet', 'language:languageSetDescription')
.addStringOption((option) =>
applyLocalizedBuilder(option, 'language:languageSetOption', 'language:languageSetOptionDescription')
)
)
.addSubcommand((command) =>
applyLocalizedBuilder(command, 'language:languageList', 'language:languageListDescription')
)
.addSubcommand((command) =>
applyLocalizedBuilder(command, 'language:languageCurrent', 'language:languageCurrentDescription')
)
);
}
}
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
oh well, i just its like that.. thanks!
5 replies
SIASapphire - Imagine a framework
Created by Fabi on 3/17/2024 in #sapphire-support
Default Permissions
currently i have it like that
export class UserCommand extends Command {
public override registerApplicationCommands(registry: ChatInputCommand.Registry) {
registry.registerChatInputCommand((builder) => applyLocalizedBuilder(builder, 'setup:CommandName', 'setup:CommandDescription'));
}

public override async chatInputRun(interaction: Command.ChatInputCommandInteraction) {
await interaction.reply({
content: `...`,
ephemeral: true
});
}
}
export class UserCommand extends Command {
public override registerApplicationCommands(registry: ChatInputCommand.Registry) {
registry.registerChatInputCommand((builder) => applyLocalizedBuilder(builder, 'setup:CommandName', 'setup:CommandDescription'));
}

public override async chatInputRun(interaction: Command.ChatInputCommandInteraction) {
await interaction.reply({
content: `...`,
ephemeral: true
});
}
}
8 replies
SIASapphire - Imagine a framework
Created by Fabi on 3/17/2024 in #sapphire-support
Default Permissions
How would i do this in the registry?
8 replies
SIASapphire - Imagine a framework
Created by Fabi on 3/17/2024 in #sapphire-support
Default Permissions
No description
8 replies
SIASapphire - Imagine a framework
Created by Fabi on 3/14/2024 in #sapphire-support
Command is not registering
alr worked! Was just a missing import :AGC_Pepeyup:
35 replies
SIASapphire - Imagine a framework
Created by Fabi on 3/14/2024 in #sapphire-support
Command is not registering
alright
35 replies
SIASapphire - Imagine a framework
Created by Fabi on 3/14/2024 in #sapphire-support
Command is not registering
No description
35 replies
SIASapphire - Imagine a framework
Created by Fabi on 3/14/2024 in #sapphire-support
Command is not registering
Other question, related to that: Can I put a subcommands into multiple files. Like /voice lock own file and /voice unlock own file
35 replies
SIASapphire - Imagine a framework
Created by Fabi on 3/14/2024 in #sapphire-support
Command is not registering
I'll look later into it
35 replies
SIASapphire - Imagine a framework
Created by Fabi on 3/14/2024 in #sapphire-support
Command is not registering
No description
35 replies
SIASapphire - Imagine a framework
Created by Fabi on 3/14/2024 in #sapphire-support
Slashcommand Option Translation
Thanks!
4 replies