Skip to content

Commit

Permalink
feat - plain message
Browse files Browse the repository at this point in the history
  • Loading branch information
jaga-live committed Dec 24, 2023
1 parent 848570d commit ace802f
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions src/interface/discord.interface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export class IGuildMessage {
public userId?: string;
public username?: string;
public avatar?: string;
public plainText?: string;
public plainMessage?: string;
public mentions?: IMessageMentions;
public attachments?: IMessageAttachments[];
public isBot?: boolean;
Expand Down Expand Up @@ -86,7 +86,7 @@ export interface IMessageReaction {
channelId?: string;
messageId?: string;
userId?: string;
plainText?: string;
plainMessage?: string;
isBot?: boolean;
emoji?: IEmoji;
payload?: Message;
Expand Down
4 changes: 2 additions & 2 deletions src/proto/kitty_chan.proto
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ message IGuildMessage{
string userId = 5;
string username = 6;
string avatar = 7;
string plainText = 8;
string plainMessage = 8;
IMessageMentions mentions = 9;
repeated IMessageAttachments attachments = 10;
bool isBot = 11;
Expand Down Expand Up @@ -122,7 +122,7 @@ message IMessageReaction{
string channelId = 2;
string messageId = 3;
string userId = 4;
string plainText = 5;
string plainMessage = 5;
bool isBot = 6;
IEmoji emoji = 7;
}
Expand Down
4 changes: 2 additions & 2 deletions src/proto/kitty_chan/IGuild.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export interface IGuild {
userId?: string;
username?: string;
avatar?: string;
plainText?: string;
plainMessage?: string;
isBot?: boolean;
}

Expand All @@ -20,6 +20,6 @@ export interface IGuild__Output {
userId?: string;
username?: string;
avatar?: string;
plainText?: string;
plainMessage?: string;
isBot?: boolean;
}
4 changes: 2 additions & 2 deletions src/proto/kitty_chan/IGuildMessage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export interface IGuildMessage {
userId?: string;
username?: string;
avatar?: string;
plainText?: string;
plainMessage?: string;
mentions?: _kitty_chan_IMessageMentions | null;
attachments?: _kitty_chan_IMessageAttachments[];
isBot?: boolean;
Expand All @@ -31,7 +31,7 @@ export interface IGuildMessage__Output {
userId?: string;
username?: string;
avatar?: string;
plainText?: string;
plainMessage?: string;
mentions?: _kitty_chan_IMessageMentions__Output;
attachments?: _kitty_chan_IMessageAttachments__Output[];
isBot?: boolean;
Expand Down
4 changes: 2 additions & 2 deletions src/proto/kitty_chan/IMessageReaction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export interface IMessageReaction {
channelId?: string;
messageId?: string;
userId?: string;
plainText?: string;
plainMessage?: string;
isBot?: boolean;
emoji?: _kitty_chan_IEmoji | null;
}
Expand All @@ -20,7 +20,7 @@ export interface IMessageReaction__Output {
channelId?: string;
messageId?: string;
userId?: string;
plainText?: string;
plainMessage?: string;
isBot?: boolean;
emoji?: _kitty_chan_IEmoji__Output;
}
4 changes: 2 additions & 2 deletions src/service/discord-events-processor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export class DiscordEventsProcessor {
userId: message.author.id,
avatar: message.author.avatar,
isBot: message.author.bot,
plainText: message.content,
plainMessage: message.content,
messageId: message.id,
username: message.author.username,
};
Expand Down Expand Up @@ -115,7 +115,7 @@ export class DiscordEventsProcessor {
userId: user.id,
isBot: content.me,
messageId: message.id,
plainText: message.content,
plainMessage: message.content,
emoji: {
animated: emoji.animated,
id: emoji.id,
Expand Down

0 comments on commit ace802f

Please sign in to comment.