Skip to content

Commit

Permalink
Merge branch 'beta'
Browse files Browse the repository at this point in the history
  • Loading branch information
Glazelf committed Jun 20, 2024
2 parents 9e09d04 + dde691f commit de9a2c3
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions commands/mod/ban.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ export default async (client, interaction) => {
export const config = {
name: "ban",
description: "Bans target user.",
default_member_permissions: Discord.PermissionFlagsBits.BanMembers,
options: [{
name: "user",
type: Discord.ApplicationCommandOptionType.User,
Expand Down
1 change: 1 addition & 0 deletions commands/mod/kick.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ export default async (client, interaction) => {
export const config = {
name: "kick",
description: "Kick a target user from the server.",
default_member_permissions: Discord.PermissionFlagsBits.KickMembers,
options: [{
name: "user",
type: Discord.ApplicationCommandOptionType.User,
Expand Down
1 change: 1 addition & 0 deletions commands/mod/mute.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ export default async (client, interaction, ephemeral) => {
export const config = {
name: "mute",
description: "Times the target out.",
default_member_permissions: Discord.PermissionFlagsBits.ModerateMembers,
options: [{
name: "user",
type: Discord.ApplicationCommandOptionType.User,
Expand Down
1 change: 1 addition & 0 deletions commands/mod/purge.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ export default async (client, interaction, ephemeral) => {
export const config = {
name: "purge",
description: "Bulk delete messages.",
default_member_permissions: Discord.PermissionFlagsBits.ManageMessages,
options: [{
name: "amount",
type: Discord.ApplicationCommandOptionType.Integer,
Expand Down
1 change: 1 addition & 0 deletions commands/mod/roleadd.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ export default async (client, interaction) => {
export const config = {
name: "roleadd",
description: "Toggle a role's eligibility to be selfassigned.",
default_member_permissions: Discord.PermissionFlagsBits.ManageRoles,
options: [{
name: "role",
type: Discord.ApplicationCommandOptionType.Role,
Expand Down
3 changes: 2 additions & 1 deletion commands/mod/serversettings.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import isAdmin from "../../util/isAdmin.js";
export default async (client, interaction) => {
try {
let adminBool = isAdmin(client, interaction.member);
if (!interaction.member.permissions.has(Discord.PermissionFlagsBits.ManageChannels) && !adminBool) return sendMessage({ client: client, interaction: interaction, content: globalVars.lackPerms });
if (!interaction.member.permissions.has(Discord.PermissionFlagsBits.ManageGuild) && !adminBool) return sendMessage({ client: client, interaction: interaction, content: globalVars.lackPerms });
let ephemeral = true;
await interaction.deferReply({ ephemeral: ephemeral });

Expand Down Expand Up @@ -124,6 +124,7 @@ export default async (client, interaction) => {
export const config = {
name: "serversettings",
description: "Change server settings.",
default_member_permissions: Discord.PermissionFlagsBits.ManageGuild,
options: [{
name: "starboard",
type: Discord.ApplicationCommandOptionType.Subcommand,
Expand Down
1 change: 1 addition & 0 deletions commands/mod/slowmode.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ export default async (client, interaction, ephemeral) => {
export const config = {
name: "slowmode",
description: "Set slowmode in the current channel.",
default_member_permissions: Discord.PermissionFlagsBits.ManageChannels,
options: [{
name: "time",
type: Discord.ApplicationCommandOptionType.Integer,
Expand Down

0 comments on commit de9a2c3

Please sign in to comment.