fenish
fenish
Explore posts from servers
SIASapphire - Imagine a framework
Created by fenish on 5/24/2023 in #sapphire-support
Ready Listener doesn't work
i will use app commands but i don't want to get those messages
12 replies
SIASapphire - Imagine a framework
Created by fenish on 5/24/2023 in #sapphire-support
Ready Listener doesn't work
12 replies
SIASapphire - Imagine a framework
Created by fenish on 5/24/2023 in #sapphire-support
Ready Listener doesn't work
ahh my main was wrong i fixed it
12 replies
SIASapphire - Imagine a framework
Created by fenish on 5/24/2023 in #sapphire-support
Ready Listener doesn't work
12 replies
SIASapphire - Imagine a framework
Created by fenish on 5/24/2023 in #sapphire-support
Ready Listener doesn't work
why its not working
12 replies
SIASapphire - Imagine a framework
Created by fenish on 5/24/2023 in #sapphire-support
Ready Listener doesn't work
12 replies
SIASapphire - Imagine a framework
Created by fenish on 4/22/2023 in #sapphire-support
Preconditions Usage
ah yea it works
36 replies
SIASapphire - Imagine a framework
Created by fenish on 4/22/2023 in #sapphire-support
Preconditions Usage
i'll try it
36 replies
SIASapphire - Imagine a framework
Created by fenish on 4/22/2023 in #sapphire-support
Preconditions Usage
like this
36 replies
SIASapphire - Imagine a framework
Created by fenish on 4/22/2023 in #sapphire-support
Preconditions Usage
36 replies
SIASapphire - Imagine a framework
Created by fenish on 4/22/2023 in #sapphire-support
Preconditions Usage
and are there any guide for file naming or directory structure for this kind of files
36 replies
SIASapphire - Imagine a framework
Created by fenish on 4/22/2023 in #sapphire-support
Preconditions Usage
or is this special for this one
36 replies
SIASapphire - Imagine a framework
Created by fenish on 4/22/2023 in #sapphire-support
Preconditions Usage
should i name my files with name of classes?
36 replies
SIASapphire - Imagine a framework
Created by fenish on 4/22/2023 in #sapphire-support
Preconditions Usage
or file structure, etc.
36 replies
SIASapphire - Imagine a framework
Created by fenish on 4/22/2023 in #sapphire-support
Preconditions Usage
is it because of my chatinput command or something like this
36 replies
SIASapphire - Imagine a framework
Created by fenish on 4/22/2023 in #sapphire-support
Preconditions Usage
it doesn't send my error message
36 replies
SIASapphire - Imagine a framework
Created by fenish on 4/22/2023 in #sapphire-support
Preconditions Usage
import {
Listener,
type ChatInputCommandDeniedPayload,
Events,
UserError,
} from "@sapphire/framework";

export class ChatInputCommandDenied extends Listener<
typeof Events.ChatInputCommandDenied
> {
public run(error: UserError, { interaction }: ChatInputCommandDeniedPayload) {
if (Reflect.get(Object(error.context), "silent")) return;

if (interaction.deferred || interaction.replied) {
return interaction.editReply({
content: error.message,
});
}

return interaction.reply({
content: error.message,
ephemeral: true,
});
}
}
import {
Listener,
type ChatInputCommandDeniedPayload,
Events,
UserError,
} from "@sapphire/framework";

export class ChatInputCommandDenied extends Listener<
typeof Events.ChatInputCommandDenied
> {
public run(error: UserError, { interaction }: ChatInputCommandDeniedPayload) {
if (Reflect.get(Object(error.context), "silent")) return;

if (interaction.deferred || interaction.replied) {
return interaction.editReply({
content: error.message,
});
}

return interaction.reply({
content: error.message,
ephemeral: true,
});
}
}
i put this inside of "listeners" folder
36 replies
SIASapphire - Imagine a framework
Created by fenish on 4/22/2023 in #sapphire-support
Preconditions Usage
oh oaky
36 replies
SIASapphire - Imagine a framework
Created by fenish on 4/22/2023 in #sapphire-support
Preconditions Usage
like error handling
36 replies
SIASapphire - Imagine a framework
Created by fenish on 4/22/2023 in #sapphire-support
Preconditions Usage
is there something to do
36 replies