dolfies / discord.py-self

A fork of the popular discord.py for user accounts.
https://discordpy-self.rtfd.io/en/latest/
MIT License
680 stars 161 forks source link

Add support for `@silent` pings #459

Closed Iinksafe closed 1 year ago

Iinksafe commented 1 year ago

Summary

Add support for sending @silent messages.

What is the feature request for?

The core library

The Problem

When sending a message that starts with @silent (yes, the space is required), the official client now marks it as a "silent" message (that is, you won't send push notifications but instead recipients will see the notification dot).

The Ideal Solution

Add {"flags":4096} to the request's JSON data.

The Current Solution

No response

Additional Context

Endpoints where it sends {"flags":4096} in JSON data:

Iinksafe commented 1 year ago

image image

dolfies commented 1 year ago

Just merged from upstream, so this is implemented!