Skip to content
This repository has been archived by the owner on Jun 7, 2022. It is now read-only.

Commit

Permalink
🐛馬鹿か逆だ
Browse files Browse the repository at this point in the history
  • Loading branch information
nanai10a committed Jan 19, 2021
1 parent bab7a2d commit 64678e4
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,25 +13,25 @@ interface IDiscordView<M> {
fun send(destination: DiscordDestination, message: DiscordMessage) {
message.charSequence?.let {
return when (destination.types) {
DiscordViewDestinationTypes.PRIVATE -> this.jda.getTextChannelById(destination.channelId)!!
DiscordViewDestinationTypes.PRIVATE -> this.jda.getPrivateChannelById(destination.channelId)!!
.sendMessage(it).queue()
DiscordViewDestinationTypes.GUILD -> this.jda.getPrivateChannelById(destination.channelId)!!
DiscordViewDestinationTypes.GUILD -> this.jda.getTextChannelById(destination.channelId)!!
.sendMessage(it).queue()
}
}
message.message?.let {
return when (destination.types) {
DiscordViewDestinationTypes.PRIVATE -> this.jda.getTextChannelById(destination.channelId)!!
DiscordViewDestinationTypes.PRIVATE -> this.jda.getPrivateChannelById(destination.channelId)!!
.sendMessage(it).queue()
DiscordViewDestinationTypes.GUILD -> this.jda.getPrivateChannelById(destination.channelId)!!
DiscordViewDestinationTypes.GUILD -> this.jda.getTextChannelById(destination.channelId)!!
.sendMessage(it).queue()
}
}
message.embed?.let {
return when (destination.types) {
DiscordViewDestinationTypes.PRIVATE -> this.jda.getTextChannelById(destination.channelId)!!
DiscordViewDestinationTypes.PRIVATE -> this.jda.getPrivateChannelById(destination.channelId)!!
.sendMessage(it).queue()
DiscordViewDestinationTypes.GUILD -> this.jda.getPrivateChannelById(destination.channelId)!!
DiscordViewDestinationTypes.GUILD -> this.jda.getTextChannelById(destination.channelId)!!
.sendMessage(it).queue()
}
}
Expand Down

0 comments on commit 64678e4

Please sign in to comment.