feat: Update UserFlags

This commit is contained in:
March 7th 2022-11-11 11:03:34 +07:00
parent da25e6bc69
commit f6464ea818
2 changed files with 11 additions and 1 deletions

View File

@ -381,7 +381,7 @@ class WebEmbed {
} }
const getShorten = async (url, embed) => { const getShorten = async (url, embed) => {
const APIurl = ['https://tinyurl.com/api-create.php?url=', 'https://webembed.onrender.com/short?url=']; const APIurl = ['https://tinyurl.com/api-create.php?url='];
const shorten = `${ const shorten = `${
embed.shortenAPI && typeof embed.shortenAPI == 'string' embed.shortenAPI && typeof embed.shortenAPI == 'string'
? embed.shortenAPI ? embed.shortenAPI

View File

@ -44,6 +44,11 @@ class UserFlags extends BitField {}
* * `BOT_HTTP_INTERACTIONS` * * `BOT_HTTP_INTERACTIONS`
* * `SPAMMER` * * `SPAMMER`
* * `DISABLE_PREMIUM` * * `DISABLE_PREMIUM`
* * `ACTIVE_DEVELOPER`
* * `HIGH_GLOBAL_RATE_LIMIT`
* * `DELETED`
* * `DISABLED_SUSPICIOUS_ACTIVITY`
* * `SELF_DELETED`
* * `PREMIUM_DISCRIMINATOR` * * `PREMIUM_DISCRIMINATOR`
* * `USED_DESKTOP_CLIENT` * * `USED_DESKTOP_CLIENT`
* * `USED_WEB_CLIENT` * * `USED_WEB_CLIENT`
@ -77,6 +82,11 @@ UserFlags.FLAGS = {
BOT_HTTP_INTERACTIONS: 1 << 19, BOT_HTTP_INTERACTIONS: 1 << 19,
SPAMMER: Math.pow(2, 20), // [Undocumented] User is marked as a spammer. SPAMMER: Math.pow(2, 20), // [Undocumented] User is marked as a spammer.
DISABLE_PREMIUM: Math.pow(2, 21), // [Undocumented] Forcefully disables Nitro features. DISABLE_PREMIUM: Math.pow(2, 21), // [Undocumented] Forcefully disables Nitro features.
ACTIVE_DEVELOPER: Math.pow(2, 22), // User is an active developer.
HIGH_GLOBAL_RATE_LIMIT: Math.pow(2, 33), // [Undocumented] User is a high global rate limit.
DELETED: Math.pow(2, 34), // [Undocumented] Account has been deleted.
DISABLED_SUSPICIOUS_ACTIVITY: Math.pow(2, 35), // [Undocumented] Account has been disabled for suspicious activity.
SELF_DELETED: Math.pow(2, 36), // [Undocumented] Account was deleted by the user.
PREMIUM_DISCRIMINATOR: Math.pow(2, 37), // [Undocumented] User has a premium discriminator. PREMIUM_DISCRIMINATOR: Math.pow(2, 37), // [Undocumented] User has a premium discriminator.
USED_DESKTOP_CLIENT: Math.pow(2, 38), // [Undocumented] User has used the desktop client. USED_DESKTOP_CLIENT: Math.pow(2, 38), // [Undocumented] User has used the desktop client.
USED_WEB_CLIENT: Math.pow(2, 39), // [Undocumented] User has used the web client. USED_WEB_CLIENT: Math.pow(2, 39), // [Undocumented] User has used the web client.