Skip to content

Commit

Permalink
🐛 権限設定のミス
Browse files Browse the repository at this point in the history
  • Loading branch information
yuito-it committed Dec 7, 2024
1 parent a7ad413 commit 719a8d7
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions commands/admin/feed.js → commands/general/feed.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,28 +4,14 @@ const { GetLogChannel, GetErrorChannel } = require("../../lib/channelUtils");

module.exports = {
guildOnly: true,
adminGuildOnly: true,
handlingCommands: subCommandHandling("admin/feed"),
data: addSubCommand(
"admin/feed",
new SlashCommandBuilder()
.setName("feed")
.setDescription("RSS feed/atom feed Utilities")
),
/*data: new SlashCommandBuilder()
.setName("feed")
.setDescription("Regist RSS feed")
.addStringOption((option) =>
option.setName("url").setDescription("URL of RSS feed").setRequired(true)
),*/
async execute(interaction) {
if (interaction.member.permissions.has("ADMINISTRATOR") === false) {
interaction.reply({
content: "You don't have permission to use this command.",
ephemeral: true,
});
return "No permission";
}
const command = this.handlingCommands.get(
interaction.options.getSubcommand()
);
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit 719a8d7

Please sign in to comment.