mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-10 12:25:02 +00:00
removed unnecessary string literal and simplified stuff
This commit is contained in:
parent
392e7fc56e
commit
afe0ec1194
17 changed files with 23 additions and 25 deletions
|
@ -119,7 +119,7 @@ export const MutesCmd = mutesCmd({
|
|||
|
||||
lines = filteredMutes.map(mute => {
|
||||
const user = pluginData.client.users.resolve(mute.user_id as Snowflake);
|
||||
const username = user ? `${user.tag}` : "Unknown#0000";
|
||||
const username = user ? user.tag : "Unknown#0000";
|
||||
const theCase = muteCasesById.get(mute.case_id);
|
||||
const caseName = theCase ? `Case #${theCase.case_number}` : "No case";
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue