message.createdAt.toISOString() returns a date in 2021

Basically title. It returns this string: "2021-05-11T05:48:10.036Z", did I missed an intent/partial?
13 Replies
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
GeekCorner
GeekCornerOP2y ago
returns the actual date when message was created?
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
GeekCorner
GeekCornerOP2y ago
yeah okay will do it asap I do, and it is a message object, I can access content, embeds and so on Sure thing later is it okay?
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
GeekCorner
GeekCornerOP2y ago
An isoString yeah
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
GeekCorner
GeekCornerOP2y ago
No
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
GeekCorner
GeekCornerOP2y ago
Pretty much yeah
<ref *1> Message {
channelId: 'channelid',
guildId: 'channelid',
id: '1003940675471036438',
createdTimestamp: 1659428509348,
type: 20,
system: false,
content: 'Page 3 of 1000',
author: User {
id: 'redacted',
bot: true,
system: false,
flags: UserFlagsBitField { bitfield: 65536 },
username: 'redacted',
discriminator: '1234',
avatar: '0',
banner: undefined,
accentColor: undefined
},
pinned: false,
tts: false,
nonce: null,
embeds: [
Embed { data: [Object] },
Embed { data: [Object] },
Embed { data: [Object] },
Embed { data: [Object] }
],
components: [
ActionRow { data: [Object], components: [Array] },
ActionRow { data: [Object], components: [Array] },
ActionRow { data: [Object], components: [Array] }
],
attachments: Collection(0) [Map] {},
stickers: Collection(0) [Map] {},
position: null,
editedTimestamp: redacted,
reactions: ReactionManager { message: [Circular *1] },
mentions: MessageMentions {
everyone: false,
users: Collection(0) [Map] {},
roles: Collection(0) [Map] {},
_members: null,
_channels: null,
_parsedUsers: null,
crosspostedChannels: Collection(0) [Map] {},
repliedUser: null
},
webhookId: '559426966151757824',
groupActivityApplication: null,
applicationId: '559426966151757824',
activity: null,
flags: MessageFlagsBitField { bitfield: 0 },
reference: null,
interaction: {
id: '1003940674330177546',
type: 2,
commandName: 'redacted',
user: User {
id: '710836174050164757',
bot: false,
system: false,
flags: [UserFlagsBitField],
username: 'GeekCornerD',
discriminator: '8010',
avatar: 'e4111fa0f8493ea24ea651826013d365',
banner: undefined,
accentColor: undefined
}
}
}
<ref *1> Message {
channelId: 'channelid',
guildId: 'channelid',
id: '1003940675471036438',
createdTimestamp: 1659428509348,
type: 20,
system: false,
content: 'Page 3 of 1000',
author: User {
id: 'redacted',
bot: true,
system: false,
flags: UserFlagsBitField { bitfield: 65536 },
username: 'redacted',
discriminator: '1234',
avatar: '0',
banner: undefined,
accentColor: undefined
},
pinned: false,
tts: false,
nonce: null,
embeds: [
Embed { data: [Object] },
Embed { data: [Object] },
Embed { data: [Object] },
Embed { data: [Object] }
],
components: [
ActionRow { data: [Object], components: [Array] },
ActionRow { data: [Object], components: [Array] },
ActionRow { data: [Object], components: [Array] }
],
attachments: Collection(0) [Map] {},
stickers: Collection(0) [Map] {},
position: null,
editedTimestamp: redacted,
reactions: ReactionManager { message: [Circular *1] },
mentions: MessageMentions {
everyone: false,
users: Collection(0) [Map] {},
roles: Collection(0) [Map] {},
_members: null,
_channels: null,
_parsedUsers: null,
crosspostedChannels: Collection(0) [Map] {},
repliedUser: null
},
webhookId: '559426966151757824',
groupActivityApplication: null,
applicationId: '559426966151757824',
activity: null,
flags: MessageFlagsBitField { bitfield: 0 },
reference: null,
interaction: {
id: '1003940674330177546',
type: 2,
commandName: 'redacted',
user: User {
id: '710836174050164757',
bot: false,
system: false,
flags: [UserFlagsBitField],
username: 'GeekCornerD',
discriminator: '8010',
avatar: 'e4111fa0f8493ea24ea651826013d365',
banner: undefined,
accentColor: undefined
}
}
}
oh wait I know i used channel creation date 99% sure
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
GeekCorner
GeekCornerOP2y ago
wasn't the problem fixed I used channel date and not the message date
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Want results from more Discord servers?
Add your server