discord.js/src/structures
Will Nelson c40488eb54 fix message embed json serialization (#2420)
* fix message embed json serialization

remove the toJSON method on message embeds so the raw data is exposed
for JSON seralization. this removes the hexColor property, but it
probably should not have been there in the first place. fixes #2419

* change api transform to tojson
2018-03-24 19:43:56 -05:00
..
interfaces fix: Convert lastMessage to getters (#2384) 2018-03-08 10:19:43 -06:00
shared fix message embed json serialization (#2420) 2018-03-24 19:43:56 -05:00
Base.js Add toJSON methods (#1859) 2018-03-01 23:00:21 -06:00
CategoryChannel.js docs: doc changes 2018-01-27 23:41:25 -06:00
Channel.js Add toJSON methods (#1859) 2018-03-01 23:00:21 -06:00
ClientApplication.js Add toJSON methods (#1859) 2018-03-01 23:00:21 -06:00
ClientUser.js Add toJSON methods (#1859) 2018-03-01 23:00:21 -06:00
ClientUserChannelOverride.js refactor: make use of destructuring for Constants (#1942) 2017-09-16 20:31:36 +02:00
ClientUserGuildSettings.js Various documentation adjustments (#2001) 2017-10-07 01:56:17 +02:00
ClientUserSettings.js Various documentation adjustments (#2001) 2017-10-07 01:56:17 +02:00
DMChannel.js fix: Convert lastMessage to getters (#2384) 2018-03-08 10:19:43 -06:00
Emoji.js Add toJSON methods (#1859) 2018-03-01 23:00:21 -06:00
GroupDMChannel.js fix: Convert lastMessage to getters (#2384) 2018-03-08 10:19:43 -06:00
Guild.js consistency: getters return null instead of undefined (#2385) 2018-03-08 10:15:06 -06:00
GuildAuditLogs.js Add toJSON methods (#1859) 2018-03-01 23:00:21 -06:00
GuildChannel.js consistency: getters return null instead of undefined (#2385) 2018-03-08 10:15:06 -06:00
GuildEmoji.js fix(GuildEmojiRoleStore): do not prematurely patch roles 2018-03-16 20:01:43 +01:00
GuildMember.js fix: Convert lastMessage to getters (#2384) 2018-03-08 10:19:43 -06:00
Invite.js Add toJSON methods (#1859) 2018-03-01 23:00:21 -06:00
Message.js Add toJSON methods (#1859) 2018-03-01 23:00:21 -06:00
MessageAttachment.js Add toJSON methods (#1859) 2018-03-01 23:00:21 -06:00
MessageCollector.js Fix ReactionCollector#remove and make Collector interface more consistent (#2221) 2018-01-16 01:33:58 +01:00
MessageEmbed.js fix message embed json serialization (#2420) 2018-03-24 19:43:56 -05:00
MessageMentions.js Add toJSON methods (#1859) 2018-03-01 23:00:21 -06:00
MessageReaction.js fix(MessageReaction): inaccurate count 2018-03-24 15:22:21 -06:00
PermissionOverwrites.js Add toJSON methods (#1859) 2018-03-01 23:00:21 -06:00
Presence.js Add toJSON methods (#1859) 2018-03-01 23:00:21 -06:00
ReactionCollector.js Fix ReactionCollector#remove and make Collector interface more consistent (#2221) 2018-01-16 01:33:58 +01:00
ReactionEmoji.js Add toJSON methods (#1859) 2018-03-01 23:00:21 -06:00
Role.js docs: Change 'the this' to this (typo) (#2377) 2018-03-04 08:16:12 +00:00
TextChannel.js fix: Convert lastMessage to getters (#2384) 2018-03-08 10:19:43 -06:00
User.js fix: Convert lastMessage to getters (#2384) 2018-03-08 10:19:43 -06:00
UserConnection.js Add toJSON methods (#1859) 2018-03-01 23:00:21 -06:00
UserProfile.js Add toJSON methods (#1859) 2018-03-01 23:00:21 -06:00
VoiceChannel.js Make all VoiceChannel bitrates in bps (#2165) 2017-12-12 05:02:53 +01:00
VoiceRegion.js Add toJSON methods (#1859) 2018-03-01 23:00:21 -06:00
Webhook.js docs: examples & improvements 2018-03-01 22:50:45 -06:00