mirror of
https://github.com/ReVanced/revanced-bots.git
synced 2026-01-11 13:56:15 +00:00
feat(bot-discord): make some fields inline for logs
This commit is contained in:
@@ -13,15 +13,17 @@ export default async function reportToLogs(config, client, action, message, { re
|
||||
|
||||
if (action === 'banned' || action === 'muted') fields.push({
|
||||
name: 'Reason',
|
||||
value: reason ? reason : 'No reason provided'
|
||||
value: reason ? reason : 'No reason provided',
|
||||
inline: true
|
||||
});
|
||||
|
||||
if (expire) fields.push({ name: 'Expires', value: `<t:${expire}:F>`});
|
||||
if (expire) fields.push({ name: 'Expires', value: `<t:${expire}:F>`, inline: true });
|
||||
|
||||
if (!message) fields.push({ name: 'Reference', value: `[Jump to message](${messageLink(
|
||||
message.channelId,
|
||||
message.id,
|
||||
message.guild.id)})`
|
||||
message.guild.id)})`,
|
||||
inline: true
|
||||
});
|
||||
|
||||
actionEmbed.setFields(fields);
|
||||
|
||||
Reference in New Issue
Block a user