diff --git a/lib/commands/hubsupport.js b/lib/commands/hubsupport.js index c0752c20a..9fbd65352 100644 --- a/lib/commands/hubsupport.js +++ b/lib/commands/hubsupport.js @@ -34,7 +34,9 @@ export default { .setAutocomplete(true) ), async execute (interaction) { - const value = interaction.options.getString('name') + let value = interaction.options.getString('name') + // Replace spaces with dashes to fix an issue with spaces not returning anything + value = value.replace(/\s+/g, '-') if (!value) { return interaction.followUp('Support for hub plugins should be directed to the author of the plugin.\nYou can find the support link by searching for the plugin in the Plugin Hub panel and clicking the `?` button on the plugin, or by right-clicking the plugin in the plugin panel and clicking the `Support` menu option.')