Implemented ChatGPT functionality
This commit is contained in:
@@ -24,12 +24,13 @@ module.exports = {
|
||||
try {
|
||||
if (command.deferInitialReply) {
|
||||
try {
|
||||
if (!interaction.options.getBool('public')) await interaction.deferReply({ ephemeral: true });
|
||||
if (interaction.options.getBool('public') && interaction.options.getBool('public') == false) await interaction.deferReply({ ephemeral: true });
|
||||
else await interaction.deferReply({ ephemeral: false });
|
||||
}
|
||||
catch (err) {
|
||||
if (err instanceof TypeError) {
|
||||
// The public option doesn't exist in this command
|
||||
await interaction.deferReply({ ephemeral: true });
|
||||
await interaction.deferReply({ ephemeral: false });
|
||||
} else {
|
||||
throw err;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user