Skip to content

Commit 2aef2cc

Browse files
feat: federation for bots
1 parent a1d698d commit 2aef2cc

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

stable/sync/v1/sync.proto

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ message Event {
3939
uint64 user_id = 1;
4040
// User ID of the user that invited.
4141
uint64 inviter_id = 2;
42-
// The invite for the guild.
42+
// The unique identifier of a user's invite to another
43+
// user to join a given guild.
4344
string invite_id = 3;
4445
}
4546
// Event sent when a user rejects a guild invitation.

staging/bots/v1/bots.proto

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,9 @@ service BotsService {
118118
// may display in its UI or restrict actions to prevent
119119
// request errors
120120
rpc Policies(PoliciesRequest) returns (PoliciesResponse);
121-
// The request to add a bot.
121+
// Requests a bot to add itself to the guild.
122+
//
123+
// For cross-server bots, this dispatches a UserInvited
124+
// request across sync, inviting the bot to the guild.
122125
rpc AddBot(AddBotRequest) returns (AddBotResponse);
123126
};

0 commit comments

Comments
 (0)