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 56d055b commit 848570d
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 17 deletions.
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"dependencies": {
"@grpc/grpc-js": "^1.9.13",
"@grpc/proto-loader": "^0.7.10",
"@live-apps/discord": "^1.0.19",
"@live-apps/discord": "^1.0.20",
"@typegoose/typegoose": "^12.0.0",
"@types/node": "^20.10.5",
"discord.js": "^14.14.1",
Expand Down
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 messageContent?: string;
public plainText?: 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;
messageContent?: string;
plainText?: 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 messageContent = 8;
string plainText = 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 messageContent = 5;
string plainText = 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;
messageContent?: string;
plainText?: string;
isBot?: boolean;
}

Expand All @@ -20,6 +20,6 @@ export interface IGuild__Output {
userId?: string;
username?: string;
avatar?: string;
messageContent?: string;
plainText?: 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;
messageContent?: string;
plainText?: 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;
messageContent?: string;
plainText?: 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;
messageContent?: string;
plainText?: string;
isBot?: boolean;
emoji?: _kitty_chan_IEmoji | null;
}
Expand All @@ -20,7 +20,7 @@ export interface IMessageReaction__Output {
channelId?: string;
messageId?: string;
userId?: string;
messageContent?: string;
plainText?: 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,
messageContent: message.content,
plainText: 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,
messageContent: message.content,
plainText: message.content,
emoji: {
animated: emoji.animated,
id: emoji.id,
Expand Down

0 comments on commit 848570d

Please sign in to comment.