should probably keep this to dms
This commit is contained in:
@@ -71,8 +71,10 @@ module.exports = {
|
|||||||
if (!config.jellyfin.users.includes(interaction.user.id)) {
|
if (!config.jellyfin.users.includes(interaction.user.id)) {
|
||||||
interaction.reply({ content: 'You are not authorized to use this command.', flags: 64 });
|
interaction.reply({ content: 'You are not authorized to use this command.', flags: 64 });
|
||||||
return;
|
return;
|
||||||
|
} else if (interaction.channel.type !== 1) {
|
||||||
|
interaction.reply({ content: 'Please keep this command in DMs. It exposes a direct API key for my media server.', flags: 64 });
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const sub = interaction.options.getSubcommand();
|
const sub = interaction.options.getSubcommand();
|
||||||
const jelly = createClient(config.jellyfin || {});
|
const jelly = createClient(config.jellyfin || {});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user