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
fetch_members: Should the client fetch members from guilds upon startup (this will delay the client being ready)
227
233
send_command_tracebacks: Automatically send uncaught tracebacks if a command throws an exception
234
+
send_not_ready_messages: Send a message to the user if they try to use a command before the client is ready
228
235
229
236
auto_defer: AutoDefer: A system to automatically defer commands after a set duration
230
237
interaction_context: Type[InteractionContext]: InteractionContext: The object to instantiate for Interaction Context
@@ -241,6 +248,9 @@ class Client(
241
248
logging_level: The level of logging to use for basic_logging. Do not use in combination with `Client.logger`
242
249
logger: The logger interactions.py should use. Do not use in combination with `Client.basic_logging` and `Client.logging_level`. Note: Different loggers with multiple clients are not supported
243
250
251
+
proxy: A http/https proxy to use for all requests
252
+
proxy_auth: The auth to use for the proxy - must be either a tuple of (username, password) or aiohttp.BasicAuth
253
+
244
254
Optionally, you can configure the caches here, by specifying the name of the cache, followed by a dict-style object to use.
245
255
It is recommended to use `smart_cache.create_cache` to configure the cache here.
246
256
as an example, this is a recommended attribute `message_cache=create_cache(250, 50)`,
@@ -277,12 +287,15 @@ def __init__(
277
287
modal_context: Type[BaseContext] =ModalContext,
278
288
owner_ids: Iterable["Snowflake_Type"] = (),
279
289
send_command_tracebacks: bool=True,
290
+
send_not_ready_messages: bool=False,
280
291
shard_id: int=0,
281
292
show_ratelimit_tracebacks: bool=False,
282
293
slash_context: Type[BaseContext] =SlashContext,
283
294
status: Status=Status.ONLINE,
284
295
sync_ext: bool=True,
285
296
sync_interactions: bool=True,
297
+
proxy_url: str|None=None,
298
+
proxy_auth: BasicAuth|tuple[str, str] |None=None,
286
299
token: str|None=None,
287
300
total_shards: int=1,
288
301
**kwargs,
@@ -312,6 +325,8 @@ def __init__(
312
325
"""Sync global commands as guild for quicker command updates during debug"""
Bulk delete messages within a channel. If a `predicate` is provided, it will be used to determine which messages to delete, otherwise all messages will be deleted within the `deletion_limit`.
414
415
@@ -424,6 +425,7 @@ async def purge(
424
425
search_limit: How many messages to search through
425
426
predicate: A function that returns True or False, and takes a message as an argument
426
427
avoid_loading_msg: Should the bot attempt to avoid deleting its own loading messages (recommended enabled)
428
+
return_messages: Should the bot return the messages that were deleted
0 commit comments