Skip to content
#

Discord

discord logo

Discord is a proprietary freeware voice-over-Internet Protocol (VoIP) application designed for video gaming communities, that specializes in text, image, video, and audio communication between users in a chat channel.

Here are 12,796 public repositories matching this topic...

duncanspumpkin
duncanspumpkin commented Feb 14, 2021

We currently use a macro for writing down a money amount as a literal. We should move to a more modern C++ representation with a user defined literal like the below:

constexpr money32 operator"" _GBP(long double money)
{
    return money * 10;
}

static_assert(MONEY(2, 40) == 2.40_GBP);

Go through the codebase and replace all MONEY macro uses with the equivalent version. You m

ImportTaste
ImportTaste commented Jan 21, 2021

Occasionally, a file will be downloaded that doesn't have an extension. I'd like it if the header could be checked so the proper extension can be given to it before saving.

There's probably a C# library that can do it, but if you'd like to check for it with your own custom code, here are the headers:

Headers for jpg files:
https://file-extension.net/seeker/file_extension_jpeg
https://file-

Organization
discord
Website
discord.com
Wikipedia
Wikipedia