disclosuure
disclosuure
SIASapphire - Imagine a framework
Created by abe on 11/26/2023 in #sapphire-support
Run bot without building to js and use ts-node or other alternatives instead.
Thank you. I meant the way you can use --onSuccess, it doesn't seem to exist for swc without watching both src and dist with separate scripts.
14 replies
SIASapphire - Imagine a framework
Created by abe on 11/26/2023 in #sapphire-support
Run bot without building to js and use ts-node or other alternatives instead.
Slightly off topic but is there an equivalent to tsc-watch for swc?
14 replies
SIASapphire - Imagine a framework
Created by disclosuure on 11/18/2023 in #sapphire-support
Command.LoaderContext does not exist
Mb, Command is from @kaname-png/plugin-subcommands-advanced (which probably hasn't been updated yet), not sapphire
12 replies
SIASapphire - Imagine a framework
Created by disclosuure on 11/18/2023 in #sapphire-support
Command.LoaderContext does not exist
It seems like LoadContext is not in the namespace? https://ss.clanware.org/tkWqU3i2.png https://ss.clanware.org/C2exJPct.png
12 replies
SIASapphire - Imagine a framework
Created by disclosuure on 11/18/2023 in #sapphire-support
Command.LoaderContext does not exist
This did not work. @sapphire/pieces was not in my deps but I tried a fresh reinstall anyway.
12 replies
SIASapphire - Imagine a framework
Created by disclosuure on 11/18/2023 in #sapphire-support
Command.LoaderContext does not exist
That did not work
12 replies
SIASapphire - Imagine a framework
Created by disclosuure on 11/2/2023 in #sapphire-support
Ephemeral PaginatedMessages are unusable
I only get it sometimes in certain servers
77 replies
SIASapphire - Imagine a framework
Created by disclosuure on 11/2/2023 in #sapphire-support
Ephemeral PaginatedMessages are unusable
It seems like discord has changed something with their API, I keep getting this error even though my code hasn't been updated at all, I wasn't previously getting it (maze error)
2023-11-15T23:07:47.455546+00:00 app[worker.1]: If you want PaginatedMessage to work in DM channels then make sure you start your client with "CHANNEL" added to "client.options.partials".
2023-11-15T23:07:47.455548+00:00 app[worker.1]: Furthermore if you are using message based commands (as opposed to application commands) then you will also need to add the "DIRECT_MESSAGE" intent to "client.options.intents"
2023-11-15T23:07:47.455552+00:00 app[worker.1]: If you do not want to be alerted about this in the future then you can disable this warning by setting "PaginatedMessage.emitPartialDMChannelWarning" to "false", or use "setEmitPartialDMChannelWarning(false)" before calling "run".
2023-11-15T23:07:47.455546+00:00 app[worker.1]: If you want PaginatedMessage to work in DM channels then make sure you start your client with "CHANNEL" added to "client.options.partials".
2023-11-15T23:07:47.455548+00:00 app[worker.1]: Furthermore if you are using message based commands (as opposed to application commands) then you will also need to add the "DIRECT_MESSAGE" intent to "client.options.intents"
2023-11-15T23:07:47.455552+00:00 app[worker.1]: If you do not want to be alerted about this in the future then you can disable this warning by setting "PaginatedMessage.emitPartialDMChannelWarning" to "false", or use "setEmitPartialDMChannelWarning(false)" before calling "run".
77 replies
SIASapphire - Imagine a framework
Created by disclosuure on 11/2/2023 in #sapphire-support
Ephemeral PaginatedMessages are unusable
77 replies
SIASapphire - Imagine a framework
Created by disclosuure on 11/2/2023 in #sapphire-support
Ephemeral PaginatedMessages are unusable
The rest are the same version
77 replies
SIASapphire - Imagine a framework
Created by disclosuure on 11/2/2023 in #sapphire-support
Ephemeral PaginatedMessages are unusable
thats the only differences
77 replies
SIASapphire - Imagine a framework
Created by disclosuure on 11/2/2023 in #sapphire-support
Ephemeral PaginatedMessages are unusable
"discord.js": "^14.14.1"
"@types/node": "^20.9.0",
"@types/ws": "^8.5.9",
"prettier": "^3.1.0",
"discord.js": "^14.14.1"
"@types/node": "^20.9.0",
"@types/ws": "^8.5.9",
"prettier": "^3.1.0",
77 replies
SIASapphire - Imagine a framework
Created by disclosuure on 11/2/2023 in #sapphire-support
Ephemeral PaginatedMessages are unusable
I would give reproduction steps but I am getting a weird error:
import { ApplyOptions } from '@sapphire/decorators';
import { PaginatedMessage } from '@sapphire/discord.js-utilities';
import { Command } from '@sapphire/framework';

@ApplyOptions<Command.Options>({
description: 'ping pong'
})
export class UserCommand extends Command {
public override registerApplicationCommands(registry: Command.Registry) {
registry.registerChatInputCommand({
name: this.name,
description: this.description
});
}

public override async chatInputRun(interaction: Command.ChatInputCommandInteraction) {
await interaction.deferReply({ ephemeral: true });

return new PaginatedMessage().addPageContent('Page 1')
.addPageContent('Page 2').run(interaction);
}
}
import { ApplyOptions } from '@sapphire/decorators';
import { PaginatedMessage } from '@sapphire/discord.js-utilities';
import { Command } from '@sapphire/framework';

@ApplyOptions<Command.Options>({
description: 'ping pong'
})
export class UserCommand extends Command {
public override registerApplicationCommands(registry: Command.Registry) {
registry.registerChatInputCommand({
name: this.name,
description: this.description
});
}

public override async chatInputRun(interaction: Command.ChatInputCommandInteraction) {
await interaction.deferReply({ ephemeral: true });

return new PaginatedMessage().addPageContent('Page 1')
.addPageContent('Page 2').run(interaction);
}
}
https://ss.clanware.org/uZvpLC9f.png
77 replies
SIASapphire - Imagine a framework
Created by disclosuure on 11/2/2023 in #sapphire-support
Ephemeral PaginatedMessages are unusable
I will provide a reproduction repo, but did you get someone else to click the button after you did, and then try to use the paginated message again?
77 replies
SIASapphire - Imagine a framework
Created by disclosuure on 11/2/2023 in #sapphire-support
Ephemeral PaginatedMessages are unusable
Incase it wasn't clear, the paginated message works fine normally, when it's created from a command rather than a button, but when its created from a button, I'm unable to click the PM buttons, as it always says 'its for someone else' after someone else clicks on the button and creates a new PM
77 replies
SIASapphire - Imagine a framework
Created by disclosuure on 11/2/2023 in #sapphire-support
Ephemeral PaginatedMessages are unusable
I used deferReply to make it ephemeral
77 replies
SIASapphire - Imagine a framework
Created by disclosuure on 11/2/2023 in #sapphire-support
Ephemeral PaginatedMessages are unusable
Yes
77 replies
SIASapphire - Imagine a framework
Created by disclosuure on 11/2/2023 in #sapphire-support
Ephemeral PaginatedMessages are unusable
🙏
77 replies
SIASapphire - Imagine a framework
Created by disclosuure on 11/2/2023 in #sapphire-support
Ephemeral PaginatedMessages are unusable
still need help
77 replies
SIASapphire - Imagine a framework
Created by disclosuure on 11/2/2023 in #sapphire-support
Ephemeral PaginatedMessages are unusable
Note that when I use a slash command to select the case, this works perfectly
77 replies