mirror of
https://github.com/toast-ts/Daggerbot-TS.git
synced 2024-11-17 16:30:58 -05:00
Formatting
This commit is contained in:
parent
b70c24c335
commit
c073bedc1c
@ -5,10 +5,6 @@ export default {
|
|||||||
if (!client.config.botSwitches.logs) return;
|
if (!client.config.botSwitches.logs) return;
|
||||||
if (client.config.mainServer.id != '468835415093411861') return;
|
if (client.config.mainServer.id != '468835415093411861') return;
|
||||||
const channel = client.channels.resolve(client.config.mainServer.channels.logs) as Discord.TextChannel;
|
const channel = client.channels.resolve(client.config.mainServer.channels.logs) as Discord.TextChannel;
|
||||||
channel.send({embeds: [new client.embed().setColor(client.config.embedColorRed).setTimestamp().setTitle(`${messages.size} messages were purged`)
|
channel.send({embeds: [new client.embed().setColor(client.config.embedColorRed).setTimestamp().setTitle(`${messages.size} messages were purged`).setDescription(`\`\`\`${messages.map((msgs)=>`${msgs.member?.displayName}: ${msgs.content}`).reverse().join('\n').slice(0,3900)}\`\`\``).addFields({name: 'Channel', value: `<#${messages.first().channel.id}>`})]})
|
||||||
.setDescription(`\`\`\`${messages.map((msgs)=>`${msgs.member?.displayName}: ${msgs.content}`).reverse().join('\n').slice(0,3900)}\`\`\``).addFields(
|
|
||||||
{name: 'Channel', value: `<#${messages.first().channel.id}>`}
|
|
||||||
)]
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -36,8 +36,7 @@ export default class punishments extends Schema {
|
|||||||
{name: '🔹 Moderator', value: `<@${punishment.moderator}>\n\`${punishment.moderator}\``, inline: true},
|
{name: '🔹 Moderator', value: `<@${punishment.moderator}>\n\`${punishment.moderator}\``, inline: true},
|
||||||
{name: '\u200b', value: '\u200b', inline: true},
|
{name: '\u200b', value: '\u200b', inline: true},
|
||||||
{name: '🔹 Reason', value: `\`${punishment.reason}\``, inline: true})
|
{name: '🔹 Reason', value: `\`${punishment.reason}\``, inline: true})
|
||||||
.setColor(this.client.config.embedColor)
|
.setColor(this.client.config.embedColor).setTimestamp(punishment.time)
|
||||||
.setTimestamp(punishment.time)
|
|
||||||
if (punishment.duration) embed.addFields({name: '🔹 Duration', value: this.client.formatTime(punishment.duration, 100), inline: true}, {name: '\u200b', value: '\u200b', inline: true})
|
if (punishment.duration) embed.addFields({name: '🔹 Duration', value: this.client.formatTime(punishment.duration, 100), inline: true}, {name: '\u200b', value: '\u200b', inline: true})
|
||||||
if (punishment.cancels) {
|
if (punishment.cancels) {
|
||||||
const cancels = await this._content.findById(punishment.cancels);
|
const cancels = await this._content.findById(punishment.cancels);
|
||||||
|
Loading…
Reference in New Issue
Block a user