Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
IThundxr committed Mar 27, 2024
1 parent c03825b commit 7c6b755
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
5 changes: 3 additions & 2 deletions src/commands/moderation/migrate_warnings.command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,13 @@ export const migrateWarningsCommand: Command = {
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
const date = Math.floor(new Date(warning.timestamp).getTime() / 1000);
const dateString: string = `<t:${date}>`
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
const issuer = await interaction.guild.members.fetch(warning.issuerId).
const issuer = await interaction.guild.members.fetch(warning.issuerId);
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
interaction.guild.channels.fetch("1133014478628343818").send(`!note ${warning.userId} ${warning.reason} | Migrated warning, Originally created at <t:${date}>, By ${issuer.username}`)
await interaction.channel.send(`!note ${warning.userId} ${warning.reason} | Migrated warning, Originally created at ${dateString}, By ${issuer.username}`)
}
},
};
6 changes: 3 additions & 3 deletions src/commands/util/tag.command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,9 @@ export const tagCommandTextBased = async (event: Message<boolean>) => {

if (!tag) return;

const embed = new EmbedBuilder();
embed.setTitle(tag.title ?? tag.name);
embed.setDescription(tag.content);
const embed = new EmbedBuilder()
.setTitle(tag.title ?? tag.name)
.setDescription(tag.content);
if (tag.color) embed.setColor(tag.color);
if (tag.image) embed.setImage(tag.image);
if (tag.fields) embed.setFields(tag.fields);
Expand Down

0 comments on commit 7c6b755

Please sign in to comment.