mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2024-11-09 22:33:09 +02:00
Update new.js
This commit is contained in:
parent
e2fb11de4f
commit
b1ff45a23e
@ -60,7 +60,7 @@ module.exports = class NewCommand extends Command {
|
|||||||
let list = tickets.rows.map(row => {
|
let list = tickets.rows.map(row => {
|
||||||
if (row.topic) {
|
if (row.topic) {
|
||||||
let description = row.topic.substring(0, 30);
|
let description = row.topic.substring(0, 30);
|
||||||
let ellipses = description.length > 30 ? '...' : '';
|
let ellipses = row.topic.length > 30 ? '...' : '';
|
||||||
return `<#${row.id}>: \`${description}${ellipses}\``;
|
return `<#${row.id}>: \`${description}${ellipses}\``;
|
||||||
} else {
|
} else {
|
||||||
return `<#${row.id}>`;
|
return `<#${row.id}>`;
|
||||||
|
Loading…
Reference in New Issue
Block a user