not-nullptr / Aerochat

Native rewrite of Aerochat, a WLM 09 themed Discord client
Mozilla Public License 2.0
147 stars 8 forks source link

Discord's account should disable the textbox in DMs #40

Closed dominichayesferen closed 1 month ago

dominichayesferen commented 1 month ago

If you've been lucky, or unlucky, enough to receive a Discord DM in your account's lifetime,

The good news is that it actually works fine.

But this bug report is pertaining to the reply function in DMs, notably the inability to actually reply to Discord's DMs. As you can see, in Discord a Discord DM is uniquely unable to be replied to:

image

However, Aerochat did not account for this, hence this bug, and any attempts to reply silently fail:

image

Thus, this bug report exists to suggest that, for Discord DMs, the reply function be disabled just like in read-only channels.

dominichayesferen commented 1 month ago

For the record, Discord's UID is 643945264868098049...? huh, was expecting it to be 0 - maybe it's random for each account?

In case it is, their username is just discord according to the Discord DM interface.

not-nullptr commented 1 month ago

i could just hardcode this i guess...

not-nullptr commented 1 month ago

side note - discord ids ("snowflakes") aren't random. they're determined based off a few things - an increment, the number of milliseconds since the discord epoch (jan 1st 2015), a worker id and the running process id. this is why you can get the date a snowflake was generated without ever hitting the api