You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+86-1Lines changed: 86 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -81,7 +81,7 @@ request functions return dictionary responses and can be used with asyncio's `aw
81
81
#
82
82
#
83
83
`bot.request_server_by_id(server_id)`
84
-
> Used for gathering info about a server.
84
+
> Used for gathering info about a server via server ID.
85
85
```
86
86
Parameters:
87
87
•server_id - the ID number of your server. Int or String object.
@@ -90,6 +90,27 @@ request functions return dictionary responses and can be used with asyncio's `aw
90
90
```
91
91
#
92
92
#
93
+
`bot.request_server_by_name(server_name)`
94
+
> Used for gathering info about a server via server name. - Note: This one returns a list of dictionaries, as multiple servers can have the same name!
95
+
```
96
+
Parameters:
97
+
•server_name - the name of your server. String object.
98
+
Example return:
99
+
[{'id': 345654377, 'name': 'jimmys server', 'online_players': [], 'server_status': 'Online', 'final_status': 'Offline', 'scene_index': 0, 'target': 1, 'region': 'north-america-agones', 'last_online': '2022-05-15T14:55:54.0527322Z', 'description': 'A server for jimmy and their friends', 'playability': 0.0, 'version': 'main-0.1.2.4', 'group_id': 3454635756, 'owner_type': 'Group', 'owner_id': 255434345, 'type': 'Normal', 'fleet': 'att-release', 'up_time': '00:46:31.9191574'}]
100
+
```
101
+
#
102
+
#
103
+
`bot.request_group_by_id(group_id)`
104
+
> Used to get info about a group via it's ID
105
+
```
106
+
Parameters:
107
+
•group_id - the ID number of your group. Int or String object.
108
+
Example return:
109
+
[{'id': 34564575, 'name': 'jimmys server', 'online_players': [], 'server_status': 'Online', 'final_status': 'Offline', 'scene_index': 0, 'target': 1, 'region': 'north-america-agones', 'last_online': '2022-05-15T14:55:54.0527322Z', 'description': 'A server for jimmy and their friends', 'playability': 0.0, 'version': 'main-0.1.2.4', 'group_id': 2346436756, 'owner_type': 'Group', 'owner_id': 86453456, 'type': 'Normal', 'fleet': 'att-release', 'up_time': '00:46:31.9191574'}]
110
+
111
+
```
112
+
#
113
+
#
93
114
`bot.request_current_groups()`
94
115
> Used for getting all groups you're currently a member of. - Note: This one returns a list of dictionaries!
95
116
```
@@ -140,6 +161,50 @@ request functions return dictionary responses and can be used with asyncio's `aw
140
161
```
141
162
#
142
163
#
164
+
`bot.request_pending_requests(group_id)`
165
+
> Used to get all the pending invite requests to a server (A request from a user to join a server) - Note: This does not return outgoing invites from the server to a user. Only incoming requests to join.
166
+
```
167
+
Parameters:
168
+
•group_id - the ID number of your group. Int or String object.
> Used to get all outgoing invites from the server to users. - Note: This does not return incoming requests to join the server from a user. Returns a list of dictionaries
188
+
```
189
+
Parameters:
190
+
•group_id - the ID number of your group. Int or String object.
0 commit comments