diff --git a/plugins/all-in-one/settings.tsx b/plugins/all-in-one/settings.tsx index d70dae4..dd16964 100644 --- a/plugins/all-in-one/settings.tsx +++ b/plugins/all-in-one/settings.tsx @@ -37,7 +37,7 @@ export default function Settings() { {/* Facts Commands Settings */} - + - - - {/* Plugin List Settings */} - - { - storage.listSettings.pluginListAlwaysDetailed = v; - forceRerender(); - }} - /> - - - {/* Theme List Settings */} - - { - storage.listSettings.themeListAlwaysDetailed = v; - forceRerender(); - }} - /> - - - {/* Commands Overview */} - + + + {/* List Commands Settings */} + { + storage.listSettings.pluginListAlwaysDetailed = v; + forceRerender(); + }} + /> + { + storage.listSettings.themeListAlwaysDetailed = v; + forceRerender(); + }} /> + + + {/* Image Commands */} + + + + {/* KonoChan Commands */} + + + { + return alerts.showConfirmationAlert({ + title: "NSFW Content Warning", + content: "NSFW content can only be sent in NSFW channels!", + confirmText: "Okay", + cancelText: null, + confirmColor: "brand", + isDismissable: true, + }); +}; + export const konoSelfCommand = { name: "konoself", displayName: "konoself", @@ -49,10 +61,8 @@ export const konoSelfCommand = { // Check if channel is NSFW for NSFW content if (isNSFW && !ctx.channel.nsfw) { - return sendMessage( - ctx.channel.id, - "❌ NSFW content can only be sent in NSFW channels!", - ); + showNSFWWarning(); + return { type: 4 }; } const imageUrl = await fetchImage(isNSFW); @@ -81,10 +91,8 @@ export const konoSendCommand = { // Check if channel is NSFW for NSFW content if (isNSFW && !ctx.channel.nsfw) { - return sendMessage( - ctx.channel.id, - "❌ NSFW content can only be sent in NSFW channels!", - ); + showNSFWWarning(); + return { type: 4 }; } const imageUrl = await fetchImage(isNSFW);