Skip to content

Instantly share code, notes, and snippets.

View lze3's full-sized avatar
🍏

zeemah lze3

🍏
  • 09:04 (UTC +01:00)
View GitHub Profile
Date.prototype.addDays = function(days) {
var date = new Date(this.valueOf());
date.setDate(date.getDate() + days);
return date;
};
const args = process.argv.slice(2);
const fs = require('fs');
const first_working_date = '5/23/2024'; // can just be left usually

Keybase proof

I hereby claim:

  • I am lze3 on github.
  • I am zeemah (https://keybase.io/zeemah) on keybase.
  • I have a public key ASC-kQC_AzGF3NqoZE2HOSjnKg-_72OfqUtCVJ8y7dim-Qo

To claim this, I am signing this object:

@lze3
lze3 / Message.ts
Last active January 18, 2021 01:43
Discord Message Referencing [Discord.js]
const urlRegex = /https:\/\/((canary|ptb).)?discordapp.com\/channels\/(\d{18})\/(\d{18})\/(\d{18})/g;
/**
* All parameters for return of a request for a message.
* Based on [Discord API Documentation](https://discord.com/developers/docs/resources/channel#message-object-message-structure).
*/
interface IMessageStruct {
id: Snowflake;
channel_id: Snowflake;
guild_id?: Snowflake;