feat(Webhook): backport missing properties (#3710)

* feat(Webhook): add avatarURL getter

This backports: https://github.com/discordjs/discord.js/pull/3625

* feat(Webhook): add type, createAt, and createdTimestamp

This backports: https://github.com/discordjs/discord.js/pull/3585

* feat(Webhook): add url getter

This backports: https://github.com/discordjs/discord.js/pull/3178

* docs(Webhook): add missing type and readonly tags
This commit is contained in:
SpaceEEC
2020-01-24 16:52:52 +01:00
committed by GitHub
parent 88b675d38a
commit 30adb378fc
3 changed files with 69 additions and 4 deletions

View File

@@ -902,3 +902,16 @@ exports.MembershipStates = [
'INVITED',
'ACCEPTED',
];
/**
* The value set for a webhook's type:
* * Incoming
* * Channel Follower
* @typedef {string} WebhookTypes
*/
exports.WebhookTypes = [
// They start at 1
null,
'Incoming',
'Channel Follower',
];