mirror of
https://github.com/tiramisulabs/seyfert.git
synced 2025-07-02 04:56:07 +00:00
fix(Message#url): Handle outside guilds (#319)
* fix(structures/message/get url): NON NULL ASSERTION? BFFR * chore: fmt
This commit is contained in:
parent
250346fe1d
commit
3af070cbd0
@ -69,7 +69,7 @@ export class BaseMessage extends DiscordBase {
|
||||
}
|
||||
|
||||
get url() {
|
||||
return Formatter.messageLink(this.guildId!, this.channelId, this.id);
|
||||
return Formatter.messageLink(this.guildId ?? this.messageReference?.guildId ?? '@me', this.channelId, this.id);
|
||||
}
|
||||
|
||||
async guild(force = false): Promise<GuildStructure<'api'> | undefined> {
|
||||
|
Loading…
x
Reference in New Issue
Block a user