Punish users with just 1 command.
Commands.yml
YAML:
Punish:
Name: punish
Description: Punishes a member
Usage: punish <user> <reason>
Aliases: []
Permission:
- Developer
- Support
SlashCommand:
Enabled: true
Data:
Name: punish
Description: Punish a member
Options:
- Type: Sub Command
Name: ban
Description: Issue a ban punishment for a user
Options:
- Type: User
Name: User
Description: User to issue a ban
Required: true
- Type: String
Name: Reason
Description: Reason to issue a ban
- Type: Integer
Name: Duration
Description: Duration of messages to delete. (Max 7 Days)
- Type: Sub Command
Name: kick
Description: Issue a kick punishment for a user
Options:
- Type: User
Name: User
Description: User to issue a kick
Required: true
- Type: String
Name: Reason
Description: Reason to issue a kick
- Type: Sub Command
Name: mute
Description: Issue a mute punishment for a user
Options:
- Type: User
Name: User
Description: User to issue a mute
Required: true
- Type: String
Name: Reason
Description: Reason to issue a mute
- Type: Sub Command
Name: tempmute
Description: Issue a temp mute punishment for a user
Options:
- Type: User
Name: User
Description: User to issue a temp mute
Required: true
- Type: String
Name: Duration
Description: Duration of mute
Required: true
- Type: String
Name: Reason
Description: Reason to issue a temp mute
- Type: Sub Command
Name: warn
Description: Issue a warning for a user
Options:
- Type: User
Name: User
Description: User to issue a warning
Required: true
- Type: String
Name: Reason
Description: Reason to issue a warning
Punishments:
Name: punishments
Description: View user's punishments
Usage: punishments <user>
Aliases: []
Permission:
- Developer
SlashCommand:
Enabled: true
Data:
Name: punishments
Description: Punish a member
Options:
- Type: String
Name: Type
Description: Type of punishment to display
Required: true
Choices:
- Name: Ban
Value: bans
- Name: Kicks
Value: kicks
- Name: Mutes
Value: mutes
- Name: Warns
Value: warns
- Type: User
Name: user
Description: User to view punishments
Required: true
- Type: Integer
Name: page
Description: Page NumberLang,yml
YAML:
Punish:
Embeds:
- AuthorIcon: https://cdn.discordapp.com/attachments/940595052953104405/940595060729344050/police-hat.png
Author: User Punishment Manager • Choose Options
Description: |-
> Select one of the punishment from the below drop downs.
• This menu will punish {member-mention}({member-tag})
Footer: "{user-tag}"
FooterIcon: "{user-pfp}"
Timestamp: true
Components:
"1":
- Type: SelectMenu
Placeholder: Click to view permanent punishments.
CustomID: punish_select_permanent
MaxSelect: 1
Options:
- Label: Ban
Description: Issues a ban punishment for {member-tag}
Value: punish_ban
Emoji: "729063917552271410"
- Label: Kick
Description: Issues a kick punishment for {member-tag}
Value: punish_kick
Emoji: "729063917552271410"
- Label: Mute
Description: Issues a timeout for {member-tag} (28 days)
Value: punish_mute
Emoji: "729063917552271410"
- Label: Temp Mute
Description: Issues a timeout for {member-tag} (Max 28 Days)
Value: punish_temp_mute
Emoji: "729063917552271410"
- Label: Warn
Description: "Issues a warning point to {member-tag} "
Value: punish_warn
Emoji: "729063917552271410"
UserBanned:
Embeds:
- AuthorIcon: https://cdn.discordapp.com/attachments/940595052953104405/940595060729344050/police-hat.png
Author: User Punishment Manager • User Banned
Description: |-
> User was successfully banned.
• **User**: {member-tag} | {member-id}
• **Duration**: {duration}
• **Reason**: {reason}
Footer: "{user-tag}"
FooterIcon: "{user-pfp}"
Timestamp: true
Components:
"1":
- Type: Button
Disabled: true
CustomID: ignore
Style: Red
Label: "Punished by: {user-tag}"
UserKicked:
Embeds:
- AuthorIcon: https://cdn.discordapp.com/attachments/940595052953104405/940595060729344050/police-hat.png
Author: User Punishment Manager • User Kicked
Description: |-
> User was successfully kicked.
• **User**: {member-tag} | {member-id}
• **Reason**: {reason}
Footer: "{user-tag}"
FooterIcon: "{user-pfp}"
Timestamp: true
Components:
"1":
- Type: Button
Disabled: true
CustomID: ignore
Style: Red
Label: "Punished by: {user-tag}"
UserMuted:
Embeds:
- AuthorIcon: https://cdn.discordapp.com/attachments/940595052953104405/940595060729344050/police-hat.png
Author: User Punishment Manager • User Muted
Description: |-
> User was successfully muted(TimedOut).
• **User**: {member-tag} | {member-id}
• **Duration**: {duration}
• **Reason**: {reason}
Footer: "{user-tag}"
FooterIcon: "{user-pfp}"
Timestamp: true
Components:
"1":
- Type: Button
Disabled: true
CustomID: ignore
Style: Red
Label: "Punished by: {user-tag}"
UserWarned:
Embeds:
- AuthorIcon: https://cdn.discordapp.com/attachments/940595052953104405/940595060729344050/police-hat.png
Author: User Punishment Manager • User Warned
Description: |-
> User was successfully warned.
• **User**: {member-tag} | {member-id}
• **Reason**: {reason}
Footer: "{user-tag}"
FooterIcon: "{user-pfp}"
Timestamp: true
Components:
"1":
- Type: Button
Disabled: true
CustomID: ignore
Style: Red
Label: "Punished by: {user-tag}"
Punishments:
Embeds:
- AuthorIcon: https://cdn.discordapp.com/attachments/940595052953104405/940595060729344050/police-hat.png
Author: User Punishment Manager • User Punishments | [{curPage}/{maxPage}]
Description: |-
> {member-tag} has total of {punishments} punishments in this category
** **
Footer: "{user-tag}"
FooterIcon: "{user-pfp}"
Timestamp: true
NoPunishments:
Embeds:
- AuthorIcon: https://cdn.discordapp.com/attachments/940595052953104405/940595060729344050/police-hat.png
Author: User Punishment Manager • User Punishments
Description: "> No requested type punishments were found for
{member-mention}({member-tag})."
Footer: "{user-tag}"
FooterIcon: "{user-pfp}"
Timestamp: true
Confirmation:
Embeds:
- Title: User Punishment Manager • Confirmation
Description: |-
> **Please confirm if you want to punish**
• **User**: {member-mention}({member-tag}) | {member-id}
• **Duration**: {duration}
• **Reason**: {reason}
Footer: "{user-tag}"
FooterIcon: "{user-pfp}"
Timestamp: true
Components:
"1":
- Type: Button
Style: Green
CustomID: punish_confirm
Label: Yes, I confirm.
- Type: Button
Style: Red
CustomID: punish_deny
Label: No, I deny.
Questions:
Ban: Please respond with amount of days you want the user's messages to be
deleted. (Max 7 Days)
TempMute: Please respond with amount of time you want the user to be muted. (Max
28 Days)
Embeds:
- AuthorIcon: "{user-pfp}"
Author: "[{current-question}/{total-questions}] Answer the following"
Description: "> {question}"
Timestamp: true
Errors:
ErrorOccured: An error occured, please contact an administrator
TimesUp: Times up! You didn't choose an option within 30 seconds.
InvalidResponse: You sent an invalid response. Please try again
NotForYou: This component isn't for you.
InvalidUsage: |-
Invalid Usage.
> `-punish <user> <reason>`
InvalidUsage2: |-
Invalid Usage.
> `-punishments <warns/mutes/kicks/bans> <user>`
InvalidOption: A invalid option was selected.
PunishableByBot: I don't have enough permission to punish(ban, kick) mentioned user.
HigherRole: You can't punish this user as they have higher roles then you
SelfPunish: You can't punish yourself.
PunishMe: You can't punish me.
Error:
Embeds:
- Title: Error Occured
Description: "> {msg}"
Footer: "{user-tag}"
FooterIcon: "{user-pfp}"
Timestamp: true
Color: "#ff0800"