Skip to content

Commit

Permalink
fix(discord): author attr due to specification changes
Browse files Browse the repository at this point in the history
  • Loading branch information
XxLittleCxX committed Jan 4, 2024
1 parent 5c8a591 commit 4ce0444
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions adapters/discord/src/message.ts
Original file line number Diff line number Diff line change
Expand Up @@ -308,9 +308,9 @@ export class DiscordMessageEncoder<C extends Context = Context> extends MessageE
})
this.buffer = ''
} else if (type === 'author') {
const { avatar, nickname } = attrs
const { avatar, name } = attrs
if (avatar) this.addition.avatar_url = avatar
if (nickname) this.addition.username = nickname
if (name) this.addition.username = name
if (this.stack[0].type === 'message') {
this.stack[0].author = attrs
}
Expand Down

0 comments on commit 4ce0444

Please sign in to comment.