Skip to content
This repository has been archived by the owner on Jul 15, 2024. It is now read-only.

Commit

Permalink
feat(deps): update deps + remove dep
Browse files Browse the repository at this point in the history
  • Loading branch information
wdhdev committed Jun 27, 2023
1 parent cb9f5c5 commit 3182eb0
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 24 deletions.
30 changes: 12 additions & 18 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 3 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,11 @@
"dependencies": {
"@sentry/node": "^7.53.1",
"axios": "^1.4.0",
"discord-snowflake": "^1.0.1",
"discord.js": "^14.11.0",
"dotenv": "^16.0.3",
"dotenv": "^16.3.1",
"moment": "^2.29.4",
"mongoose": "^6.8.3",
"mongoose": "^6.11.2",
"node-fetch": "^2.6.9",
"stop-discord-phishing": "^0.3.2"
"stop-discord-phishing": "^0.3.3"
}
}
3 changes: 1 addition & 2 deletions src/util/send.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
module.exports = async function (message, client, Discord) {
const assignRoles = require("./roles/assign");
const emoji = require("../config.json").emojis;
const snowflake = require("discord-snowflake");
const role = await require("./roles/get")(message.author, client);
const test = require("./filter/test");

Expand Down Expand Up @@ -108,7 +107,7 @@ module.exports = async function (message, client, Discord) {
if(user) replyEmbed.setAuthor({ name: user.tag.endsWith("#0") ? `@${user.username}` : user.tag, iconURL: user.displayAvatarURL({ format: "png", dynamic: true }), url: `https://discord.com/users/${user.id}` });
if(data.content) replyEmbed.setDescription(data.content);
if(data.attachment) replyEmbed.setImage(data.attachment);
replyEmbed.setTimestamp(snowflake(data._id));
replyEmbed.setTimestamp(new Date(Number((BigInt(data._id) >> 22n) + 1420070400000n)));
}

// Embed message
Expand Down

0 comments on commit 3182eb0

Please sign in to comment.