Skip to content

Commit

Permalink
Merge pull request #63 from Softawii/feature/voice_fix
Browse files Browse the repository at this point in the history
Feature/voice fix
  • Loading branch information
yaansz committed Aug 7, 2022
2 parents 6d2d631 + 0c034eb commit 22aa1c3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ plugins {
}

group 'com.softwaii.capivara'
version '1.0.4.0'
version '1.0.4.1'


repositories {
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/softawii/capivara/core/VoiceManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public Modal getConfigModal(Category category, String id) {
try {
VoiceHive voiceHive = voiceHiveService.find(category.getIdLong());

Modal.Builder builder = Modal.create(id + ":" + category.getIdLong(), "Configuring " + category.getName() + " (Empty for don't use)").addActionRow(
Modal.Builder builder = Modal.create(id + ":" + category.getIdLong(), category.getName().substring(0, category.getName().length() > 45 ? 44 : category.getName().length())).addActionRow(
TextInput.create(configModal_fieldIdle, "Channel Name when Idle", TextInputStyle.SHORT).setValue(voiceHive.getIdle()).build()
).addActionRow(
TextInput.create(configModal_fieldPlaying, "Channel Name when Playing", TextInputStyle.SHORT).setValue(voiceHive.getPlaying()).setRequired(false).build()
Expand Down

0 comments on commit 22aa1c3

Please sign in to comment.