mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2025-09-06 02:01:26 +03:00
feat: /rename
command (#583)
* feat(rename): add /rename command - implement the /rename command to allow staff to change the name of a topic - validate that the new name is between 1 and 100 characters - return appropriate success or error messages based on the validation * refactor: ?? * fix(i18n): lowercase command name * fix: consistency * style: sort & format `en-GB.yml` * feat: log rename --------- Co-authored-by: Isaac <git@eartharoid.me>
This commit is contained in:
@@ -23,12 +23,12 @@ buttons:
|
||||
reject_close_request:
|
||||
emoji: ✖️
|
||||
text: Reject
|
||||
unclaim:
|
||||
emoji: ♻️
|
||||
text: Release
|
||||
transcript:
|
||||
emoji: 📄
|
||||
text: Transcript
|
||||
unclaim:
|
||||
emoji: ♻️
|
||||
text: Release
|
||||
commands:
|
||||
message:
|
||||
create:
|
||||
@@ -190,6 +190,28 @@ commands:
|
||||
success:
|
||||
description: "{member} has been removed from {ticket}."
|
||||
title: ✅ Removed
|
||||
rename:
|
||||
description: Rename a ticket channel
|
||||
error: There was an error while renaming the channel.
|
||||
invalid:
|
||||
description: The name must be between 1 and 100 characters in length.
|
||||
title: Invalid name
|
||||
name: rename
|
||||
not_staff:
|
||||
description: Only staff members can rename tickets.
|
||||
title: ❌ Error
|
||||
options:
|
||||
name:
|
||||
description: The new name for the ticket channel.
|
||||
name: name
|
||||
ratelimited:
|
||||
description:
|
||||
You have already renamed this channel twice within the last 10
|
||||
minutes. Please wait before trying again.
|
||||
title: Rate Limit Reached
|
||||
success:
|
||||
description: The ticket channel has been renamed to `{name}`.
|
||||
title: Channel renamed
|
||||
tag:
|
||||
description: Use a tag
|
||||
name: tag
|
||||
@@ -383,8 +405,8 @@ misc:
|
||||
for_admins:
|
||||
name: For server administrators
|
||||
value: >
|
||||
An invalid user or role was supplied, which usually means a staff role has been deleted.
|
||||
[Click here]({url}) for resolution instructions.
|
||||
An invalid user or role was supplied, which usually means a staff role
|
||||
has been deleted. [Click here]({url}) for resolution instructions.
|
||||
title: ⚠️ Something went wrong
|
||||
unknown_category:
|
||||
description: Please try a different category.
|
||||
|
Reference in New Issue
Block a user