Create and manage role / messages licenses
Commands
License created
YAML:
Permissions:
Create:
- Staff
Delete:
- Staff
Use: []
# To allow everyone to use the command
# Remove the command key | set to false | set to []
Info:
- Staff
List:
- Staff
Commands:
License:
Usage: Use the slash command
Description: Manage licenses
Aliases: []
Permission: []
SlashCommand:
Enabled: true
Data:
Name: license
Description: Manage licenses
Options:
- Type: Sub Command
Name: create
Description: Create a license
Options:
- Type: String
Name: type
Description: The type of license
Choices:
- Name: Role
Value: role
- Name: Message
Value: message
Required: true
- Type: User
Name: user
Description: The user to give the license to
Required: false
- Type: Integer
Name: uses
Description: The amount of uses the license has
Required: false
- Type: Sub Command
Name: delete
Description: Delete a license
Options:
- Type: String
Name: id
Description: The id of the license
Required: false
- Type: Sub Command
Name: use
Description: Use a license
Options:
- Type: String
Name: id
Description: The id of the license
Required: false
- Type: Sub Command
Name: info
Description: Get info about a license
Options:
- Type: String
Name: id
Description: The id of the license
Required: false
- Type: Sub Command
Name: list
Description: List all licenses
Options:
- Type: Integer
Name: page
Description: The page to list
Required: false
- Type: String
Name: type
Description: The type of license
Choices:
- Name: Role
Value: role
- Name: Message
Value: message
Required: false
YAML:
Commands:
Create:
AskFor:
Role:
Embeds:
- Title: Please mention the role
Color: BLUE
Timestamp: true
Footer: You should mention the role!
Message:
Embeds:
- Title: Please send the message
Color: BLUE
Timestamp: true
LicenseCreated:
Embeds:
- Title: ✅ | License created
Fields:
- Name: • Type
Value: "{license-type}"
Inline: true
- Name: • ID
Value: "{license-id}"
Inline: true
- Name: • Uses
Value: "{license-uses}"
Inline: true
- Name: • Reward
Value: "{license-reward}"
- Name: • License for
Value: "{license-receiver}"
Delete:
Embeds:
- Title: License successfully deleted
Color: "#A200FF"
Description: >-
The license for {license-receiver} with the ID `{license-id}` has
been deleted
{license-reward}
Timestamp: true
Footer: "{license-type} | {license-id}"
Use:
LicenseNotFound:
Embeds:
- Title: License not found
Color: RED
Timestamp: true
Footer: Please check the ID
AlreadyClaimed:
Embeds:
- Title: You already claimed this license
Color: RED
Timestamp: true
LicenseNotOwned:
Embeds:
- Title: License not owned
Color: RED
Description: You don't own this license
Timestamp: true
NoUses:
Embeds:
- Title: That license has no more uses
Color: RED
Timestamp: true
RedeemFailed:
Embeds:
- Title: Redeem failed
Color: RED
Timestamp: true
Fields:
- Name: • Reason
Value: "{reason}"
Inline: true
- Name: • Error
Value: "{error}"
Inline: true
Redeemed:
Embeds:
- Title: ✅ | Redeemed
Color: BLUE
Timestamp: true
Description: |-
You have redeemed the license
{license-reward}
Footer: "{license-id} | You can not redeem this license anymore"
Info:
Embeds:
- AuthorIcon: https://cdn-icons.flaticon.com/png/512/471/premium/471662.png?token=exp=1654464886~hmac=687cfeafb1526dd50e21ee8d2dc1b306
Author: License info - [ {license-id} ]
Timestamp: true
Fields:
- Name: • Type
Value: "> {license-type}"
Inline: true
- Name: • ID
Value: "> {license-id}"
Inline: true
- Name: • Uses
Value: "> {license-uses}"
Inline: true
- Name: • Reward
Value: "> {license-reward}"
Inline: true
- Name: • License for
Value: "> {license-receiver}"
Inline: true
- Name: • Created by
Value: "> {license-creator}"
Inline: true
- Name: • Claimed by
Value: "> {license-redeems}"
List:
NoLicenses:
Embeds:
- Title: No licenses found
Color: RED
Timestamp: true
Format: |+
**• {license-id}**
> **Type**: `{license-type}`
> **Uses**: {license-uses} uses left
> **Reward**: {license-reward}
List:
Embeds:
- Title: Licenses list [ **`{page} / {pages}`** ]
Color: BLUE
Timestamp: true
Description: "{list}"To get support for this addon contact to ElkinSantiana#0115