RPC with Custom Image

and fix something
This commit is contained in:
March 7th
2022-04-17 00:11:46 +07:00
parent 70637bb8d6
commit e9ba80a325
4 changed files with 38 additions and 13 deletions

View File

@@ -181,7 +181,6 @@ class ClientUserSettingManager {
* @returns {boolean}
*/
async setDisplayCompactMode(value) {
if (this.client.bot) throw new Error('INVALID_BOT_METHOD');
if (typeof value !== 'boolean' && value !== null && typeof value !== 'undefined') {
throw new TypeError('INVALID_TYPE', 'value', 'boolean | null | undefined', true);
}
@@ -197,7 +196,6 @@ class ClientUserSettingManager {
* @returns {theme}
*/
async setTheme(value) {
if (this.client.bot) throw new Error('INVALID_BOT_METHOD');
const validValues = ['dark', 'light'];
if (typeof value !== 'string' && value !== null && typeof value !== 'undefined') {
throw new TypeError('INVALID_TYPE', 'value', 'string | null | undefined', true);
@@ -296,7 +294,6 @@ class ClientUserSettingManager {
* @returns {locale}
*/
async setLocale(value) {
if (this.client.bot) throw new Error('INVALID_BOT_METHOD');
if (typeof value !== 'string') {
throw new TypeError('INVALID_TYPE', 'value', 'string', true);
}