-
-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
656 additions
and
244 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
{ | ||
"name": "lockdown", | ||
"description": "Manage the server's lockdown status", | ||
"actionName": "action", | ||
"actionDescription": "The action to perform", | ||
"channelName": "channel", | ||
"channelDescription": "The channel to lock down", | ||
"durationName": "duration", | ||
"durationDescription": "How long the lockdown should last", | ||
"roleName": "role", | ||
"roleDescription": "The role to use for the lockdown", | ||
"globalName": "global", | ||
"globalDescription": "⚠️ Whether or not to apply the lockdown to the entire server", | ||
"actionLock": "Lock", | ||
"actionUnlock": "Unlock", | ||
"auditLogLockRequestedBy": "Channel locked at request of {{user}}", | ||
"auditLogUnlockRequestedBy": "Channel unlocked at request of {{user}}", | ||
"guildLocked": "{{role}} is already locked down in the server.", | ||
"guildUnlocked": "{{role}} is currently not locked down in the server.", | ||
"successGuild": "Successfully updated the lockdown status for {{role}} in the server.", | ||
"guildUnknownRole": "I somehow could not find the role {{role}}, you can try with other roles.", | ||
"guildLockFailed": "The role {{role}} could not be locked down, please try again later.", | ||
"guildUnlockFailed": "The role {{role}} could not be unlocked, please try again later.", | ||
"successThread": "Successfully updated the lockdown status for the thread {{channel}} in the server.", | ||
"threadLocked": "The thread {{channel}} is already locked.", | ||
"threadUnlocked": "The thread {{channel}} is currently not locked.", | ||
"threadUnmanageable": "I cannot manage the thread {{channel}}, please update my permissions and try again.", | ||
"threadUnknownChannel": "I somehow could not find the thread {{channel}}, you can try with other channels.", | ||
"threadLockFailed": "The thread {{channel}} could not be locked, please try again later.", | ||
"threadUnlockFailed": "The thread {{channel}} could not be unlocked, please try again later.", | ||
"successChannel": "Successfully updated the lockdown status for the channel {{channel}} in the server", | ||
"channelLocked": "The channel {{channel}} is already locked.", | ||
"channelUnlocked": "The channel {{channel}} is currently not locked.", | ||
"channelUnmanageable": "I cannot manage the channel {{channel}}, please update my permissions and try again.", | ||
"channelUnknownChannel": "I somehow could not find the channel {{channel}}, you can try with other channels.", | ||
"channelLockFailed": "The channel {{channel}} could not be locked, please try again later." | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
import { FT, T } from '#lib/types'; | ||
import type { ChannelMention, RoleMention } from 'discord.js'; | ||
|
||
// Root | ||
export const Name = T('commands/lockdown:name'); | ||
export const Description = T('commands/lockdown:description'); | ||
|
||
// Options | ||
export const Action = 'commands/lockdown:action'; | ||
export const Channel = 'commands/lockdown:channel'; | ||
export const Duration = 'commands/lockdown:duration'; | ||
export const Role = 'commands/lockdown:role'; | ||
export const Global = 'commands/lockdown:global'; | ||
|
||
// Action choices | ||
export const ActionLock = T('commands/lockdown:actionLock'); | ||
export const ActionUnlock = T('commands/lockdown:actionUnlock'); | ||
|
||
export const AuditLogLockRequestedBy = FT<{ user: string }>('commands/lockdown:auditLogLockRequestedBy'); | ||
export const AuditLogUnlockRequestedBy = FT<{ user: string }>('commands/lockdown:auditLogUnlockRequestedBy'); | ||
|
||
// Guild | ||
export const GuildLocked = FT<{ role: RoleMention }>('commands/lockdown:guildLocked'); | ||
export const GuildUnlocked = FT<{ role: RoleMention }>('commands/lockdown:guildUnlocked'); | ||
export const SuccessGuild = FT<{ role: RoleMention }>('commands/lockdown:successGuild'); | ||
export const GuildUnknownRole = FT<{ role: RoleMention }>('commands/lockdown:guildUnknownRole'); | ||
export const GuildLockFailed = FT<{ role: RoleMention }>('commands/lockdown:guildLockFailed'); | ||
export const GuildUnlockFailed = FT<{ role: RoleMention }>('commands/lockdown:guildUnlockFailed'); | ||
|
||
// Thread | ||
export const SuccessThread = FT<{ channel: ChannelMention }>('commands/lockdown:successThread'); | ||
export const ThreadLocked = FT<{ channel: ChannelMention }>('commands/lockdown:threadLocked'); | ||
export const ThreadUnlocked = FT<{ channel: ChannelMention }>('commands/lockdown:threadUnlocked'); | ||
export const ThreadUnmanageable = FT<{ channel: ChannelMention }>('commands/lockdown:threadUnmanageable'); | ||
export const ThreadUnknownChannel = FT<{ channel: ChannelMention }>('commands/lockdown:threadUnknownChannel'); | ||
export const ThreadLockFailed = FT<{ channel: ChannelMention }>('commands/lockdown:threadLockFailed'); | ||
export const ThreadUnlockFailed = FT<{ channel: ChannelMention }>('commands/lockdown:threadUnlockFailed'); | ||
|
||
// Channel | ||
export const SuccessChannel = FT<{ channel: ChannelMention }>('commands/lockdown:successChannel'); | ||
export const ChannelLocked = FT<{ channel: ChannelMention }>('commands/lockdown:channelLocked'); | ||
export const ChannelUnlocked = FT<{ channel: ChannelMention }>('commands/lockdown:channelUnlocked'); | ||
export const ChannelUnmanageable = FT<{ channel: ChannelMention }>('commands/lockdown:channelUnmanageable'); | ||
export const ChannelUnknownChannel = FT<{ channel: ChannelMention }>('commands/lockdown:channelUnknownChannel'); | ||
export const ChannelLockFailed = FT<{ channel: ChannelMention }>('commands/lockdown:channelLockFailed'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.