Skip to content

Commit

Permalink
Merge pull request #1366 from Oneirocom/discord-snowflake
Browse files Browse the repository at this point in the history
Discord snowflake
  • Loading branch information
benbot authored Oct 30, 2023
2 parents 818f95c + 0480f95 commit a06d941
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/plugins/discord/server/src/connectors/discord.ts
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ export class DiscordConnector {
}

// add the sender if not already in the list
if (!entities.includes(author.username)) {
if (!entities.includes(this.client.user.username)) {
entities.push(this.client.user.username)
}

Expand All @@ -285,7 +285,7 @@ export class DiscordConnector {
[`Input - Discord (${inputType})`]: {
connector: `Discord (${inputType})`,
content: content,
sender: author.username,
sender: author.id,
observer: this.client.user.username,
client: 'discord',
channel: message.channel.id,
Expand Down
2 changes: 1 addition & 1 deletion packages/plugins/discord/shared/src/nodes/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export async function runSpell(
'Input - Discord (Text)': {
connector: 'Discord (Text)',
content: content,
sender: ' message.author.username',
sender: ' message.author.id',
observer: ' message.author.username',
client: 'discord',
channel: 'message.channel.id',
Expand Down

0 comments on commit a06d941

Please sign in to comment.