@@ -1321,6 +1321,7 @@ async def send(
1321
1321
mention_author : bool = ...,
1322
1322
view : View = ...,
1323
1323
suppress : bool = ...,
1324
+ silent : bool = ...,
1324
1325
) -> Message :
1325
1326
...
1326
1327
@@ -1340,6 +1341,7 @@ async def send(
1340
1341
mention_author : bool = ...,
1341
1342
view : View = ...,
1342
1343
suppress : bool = ...,
1344
+ silent : bool = ...,
1343
1345
) -> Message :
1344
1346
...
1345
1347
@@ -1359,6 +1361,7 @@ async def send(
1359
1361
mention_author : bool = ...,
1360
1362
view : View = ...,
1361
1363
suppress : bool = ...,
1364
+ silent : bool = ...,
1362
1365
) -> Message :
1363
1366
...
1364
1367
@@ -1378,6 +1381,7 @@ async def send(
1378
1381
mention_author : bool = ...,
1379
1382
view : View = ...,
1380
1383
suppress : bool = ...,
1384
+ silent : bool = ...,
1381
1385
) -> Message :
1382
1386
...
1383
1387
@@ -1398,6 +1402,7 @@ async def send(
1398
1402
mention_author = None ,
1399
1403
view = None ,
1400
1404
suppress = None ,
1405
+ silent = None ,
1401
1406
):
1402
1407
"""|coro|
1403
1408
@@ -1471,6 +1476,10 @@ async def send(
1471
1476
.. versionadded:: 2.0
1472
1477
suppress: :class:`bool`
1473
1478
Whether to suppress embeds for the message.
1479
+ slient: :class:`bool`
1480
+ Whether to suppress push and desktop notifications for the message.
1481
+
1482
+ .. versionadded:: 2.4
1474
1483
1475
1484
Returns
1476
1485
-------
@@ -1510,11 +1519,10 @@ async def send(
1510
1519
)
1511
1520
embeds = [embed .to_dict () for embed in embeds ]
1512
1521
1513
- flags = (
1514
- MessageFlags .suppress_embeds .flag
1515
- if suppress
1516
- else MessageFlags .DEFAULT_VALUE
1517
- )
1522
+ flags = MessageFlags (
1523
+ suppress_embeds = bool (suppress ),
1524
+ suppress_notifications = bool (silent ),
1525
+ ).value
1518
1526
1519
1527
if stickers is not None :
1520
1528
stickers = [sticker .id for sticker in stickers ]
0 commit comments