parent
8f21115035
commit
69965d1804
@ -192,8 +192,7 @@ class GuildMemberManager extends CachedManager {
|
|||||||
* @see {@link https://github.com/aiko-chan-ai/discord.js-selfbot-v13/blob/main/Document/FetchGuildMember.md}
|
* @see {@link https://github.com/aiko-chan-ai/discord.js-selfbot-v13/blob/main/Document/FetchGuildMember.md}
|
||||||
*/
|
*/
|
||||||
fetch(options) {
|
fetch(options) {
|
||||||
if (!options || (!options?.query && !options?.user)) {
|
if (!options || (typeof options === 'object' && !('user' in options) && !('query' in options))) {
|
||||||
// Check Permissions
|
|
||||||
if (
|
if (
|
||||||
this.guild.members.me.permissions.has('KICK_MEMBERS') ||
|
this.guild.members.me.permissions.has('KICK_MEMBERS') ||
|
||||||
this.guild.members.me.permissions.has('BAN_MEMBERS') ||
|
this.guild.members.me.permissions.has('BAN_MEMBERS') ||
|
||||||
|
Loading…
Reference in New Issue
Block a user