ararou!
ararou!
SIASapphire - Imagine a framework
Created by -Carlos👑 on 1/2/2024 in #sapphire-support
Certain amount of infractions per page
like <new PaginatedMessageEmbedFields>.setItemsPerPage(10)
44 replies
SIASapphire - Imagine a framework
Created by -Carlos👑 on 1/2/2024 in #sapphire-support
Certain amount of infractions per page
if so, there should be a setItemsPerPage function
44 replies
SIASapphire - Imagine a framework
Created by -Carlos👑 on 1/2/2024 in #sapphire-support
Certain amount of infractions per page
wdym? like limit the amount of fields in a page?
44 replies
SIASapphire - Imagine a framework
Created by Lily Wonhalf on 10/8/2023 in #sapphire-support
Allow or prevent command execution
i've been actually needing this since the test bot of a project ive been working on in the main guild and the owner gave it fucking admin so everyone could use it nosleep
53 replies
SIASapphire - Imagine a framework
Created by -Carlos👑 on 9/1/2023 in #sapphire-support
messageCommandDenied
like internal builtin preconditions n stuff iirc
6 replies
SIASapphire - Imagine a framework
Created by -Carlos👑 on 9/1/2023 in #sapphire-support
messageCommandDenied
thats still gonna be tho i think for like, core core errors
6 replies
SIASapphire - Imagine a framework
Created by -Carlos👑 on 8/27/2023 in #sapphire-support
Precondition issue
either way
25 replies
SIASapphire - Imagine a framework
Created by -Carlos👑 on 8/27/2023 in #sapphire-support
Precondition issue
i am hardly informed on some changes abt d.js 😅
25 replies
SIASapphire - Imagine a framework
Created by -Carlos👑 on 8/27/2023 in #sapphire-support
Precondition issue
and look up on it
25 replies
SIASapphire - Imagine a framework
Created by -Carlos👑 on 8/27/2023 in #sapphire-support
Precondition issue
ill test it out in a test build of the bot
25 replies
SIASapphire - Imagine a framework
Created by -Carlos👑 on 8/27/2023 in #sapphire-support
Precondition issue
eh
25 replies
SIASapphire - Imagine a framework
Created by -Carlos👑 on 8/27/2023 in #sapphire-support
Precondition issue
oh
25 replies
SIASapphire - Imagine a framework
Created by -Carlos👑 on 8/27/2023 in #sapphire-support
Precondition issue
but yea using yourconfig.roles.some((role) => <GuildMember>.roles.cache.has(role)); will work
25 replies
SIASapphire - Imagine a framework
Created by -Carlos👑 on 8/27/2023 in #sapphire-support
Precondition issue
and then
export default class Staff extends Precondition {
public override async messageRun(message: Message) {
return this.container.utils.checks.isStaff(message.member!)
? this.ok()
: this.error({
message: "Stop trying to use this command, it's for staff only.",
});
}
}
export default class Staff extends Precondition {
public override async messageRun(message: Message) {
return this.container.utils.checks.isStaff(message.member!)
? this.ok()
: this.error({
message: "Stop trying to use this command, it's for staff only.",
});
}
}
25 replies
SIASapphire - Imagine a framework
Created by -Carlos👑 on 8/27/2023 in #sapphire-support
Precondition issue
i just use
export const isStaff = function (member: GuildMember) {
return (
container.config.guild.roles.owner.some((role: string) =>
member.roles.cache.has(role),
) ||
container.config.guild.roles.admin.some((role: string) =>
member.roles.cache.has(role),
) ||
container.config.guild.roles.head.some((role: string) =>
member.roles.cache.has(role),
) ||
container.config.guild.roles.staff.some((role: string) =>
member.roles.cache.has(role),
) ||
container.config.dev.includes(member.user.id)
);
};
export const isStaff = function (member: GuildMember) {
return (
container.config.guild.roles.owner.some((role: string) =>
member.roles.cache.has(role),
) ||
container.config.guild.roles.admin.some((role: string) =>
member.roles.cache.has(role),
) ||
container.config.guild.roles.head.some((role: string) =>
member.roles.cache.has(role),
) ||
container.config.guild.roles.staff.some((role: string) =>
member.roles.cache.has(role),
) ||
container.config.dev.includes(member.user.id)
);
};
for my staff check function
25 replies
SIASapphire - Imagine a framework
Created by -Carlos👑 on 8/27/2023 in #sapphire-support
Precondition issue
"hasAny"
25 replies
SIASapphire - Imagine a framework
Created by -Carlos👑 on 8/27/2023 in #sapphire-support
Precondition issue
what
25 replies
SIASapphire - Imagine a framework
Created by mrwild. on 8/26/2023 in #sapphire-support
Post examples
Lmao
6 replies
SIASapphire - Imagine a framework
Created by ararou! on 8/25/2023 in #sapphire-support
How do I check if the user ID is actually equals to the user ID in interaction-handlers
in 50 years
26 replies
SIASapphire - Imagine a framework
Created by ararou! on 8/25/2023 in #sapphire-support
How do I check if the user ID is actually equals to the user ID in interaction-handlers
dw ill fix it later
26 replies