File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
BotCommands-core/src/test/kotlin/io/github/freya022/botcommands/test/commands/slash Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 11package io.github.freya022.botcommands.test.commands.slash
22
33import dev.freya02.botcommands.jda.ktx.messages.reply_
4- import dev.freya02.botcommands.jda.ktx.retrieve.retrieveThreadChannelOrNull
4+ import dev.freya02.botcommands.jda.ktx.retrieve.retrieveThreadChannelByIdOrNull
55import io.github.freya022.botcommands.api.commands.annotations.Command
66import io.github.freya022.botcommands.api.commands.application.ApplicationCommand
77import io.github.freya022.botcommands.api.commands.application.slash.GuildSlashEvent
@@ -12,7 +12,7 @@ import io.github.freya022.botcommands.api.commands.application.slash.annotations
1212class SlashThreadById : ApplicationCommand () {
1313 @JDASlashCommand(name = " thread_by_id" )
1414 suspend fun execute (event : GuildSlashEvent , @SlashOption id : String ) {
15- val threadChannel = event.guild.retrieveThreadChannelOrNull (id.toLong())
15+ val threadChannel = event.guild.retrieveThreadChannelByIdOrNull (id.toLong())
1616 event.reply_(threadChannel?.asMention.toString(), ephemeral = true ).queue()
1717 }
1818}
You can’t perform that action at this time.
0 commit comments