is it possible with sapphire something like if user has role with id "1098270502058995842" or if user has role "Moderator(Object)"
Solution
import type { Message } from 'discord.js';import { createFunctionPrecondition } from '@sapphire/decorators';export function RequiresRoleAccess(): MethodDecorator { return createFunctionPrecondition((message: Message) => /* Do your checks here */, /* write your fallback function here */);}
import type { Message } from 'discord.js';import { createFunctionPrecondition } from '@sapphire/decorators';export function RequiresRoleAccess(): MethodDecorator { return createFunctionPrecondition((message: Message) => /* Do your checks here */, /* write your fallback function here */);}