Closed pakkographic closed 1 year ago
Not sure if it should be merged, it'd make the user experience somehow worse. It'd separate the code in two parts if using message.member
for example.
Before:
client.on("messageCreate", (message) => {
const member = await message.member;
// anything
});
After:
client.on("messageCreate", (message) => {
if (message.member instanceof Member){
// anything
} else {
// something else.
}
});
The guided api lacks of information, we cannot rely on cache for now. PR Postponed.
solution was found.
Uncached
Message#member
doesn't returnPromise<Member>
,User
,undefined
anymore. It returnsMember
orUncached
.Doc#memberID
in favor ofDoc#creatorID
Doc#member
doesn't return a promise anymore.ForumThreadComment#member
doesn't return promise anymore.ListItem#member
doesn't return promise anymore.ListItem#memberID
in favor ofListItem#creatorID
MemberInfo#member
andMemberInfo#guild
doesn't return promise anymore.Member#guild
doesn't return promise when uncached anymore.ForumThread#guild
doesn't return promise when uncached anymore.BannedMember#guild
doesn't return promise when uncached anymore.messageReactionInfo
in favor ofMessageReactionTypes
forumThreadReactionInfo
in favor ofForumThreadReactionTypes