mirror of
https://github.com/darksaid98/cadence-discord-bot.git
synced 2026-12-03 06:28:53 +00:00
fix: Small changes to new action buttons
This commit is contained in:
1 parent
5dfe902f9e
commit
981be707f0
5 files changed
+28
-31
No files matched your search
+3
-3
@@ -5,9 +5,9 @@ import { BaseComponentParams, BaseComponentReturnType } from '../../types/intera
|
||||
import { checkQueueCurrentTrack, checkQueueExists } from '../../utils/validation/queueValidator';
|
||||
import { checkInVoiceChannel, checkSameVoiceChannel } from '../../utils/validation/voiceChannelValidator';
|
||||
|
||||
class NowplayingPlayPauseButton extends BaseComponentInteraction {
|
||||
class ActionPauseResumeButton extends BaseComponentInteraction {
|
||||
constructor() {
|
||||
super('nowplaying-playpause-button');
|
||||
super('action-pauseresume-button');
|
||||
}
|
||||
|
||||
async execute(params: BaseComponentParams): BaseComponentReturnType {
|
||||
@@ -89,4 +89,4 @@ class NowplayingPlayPauseButton extends BaseComponentInteraction {
|
||||
}
|
||||
}
|
||||
|
||||
export default new NowplayingPlayPauseButton();
|
||||
export default new ActionPauseResumeButton();
|
||||
+3
-3
@@ -6,9 +6,9 @@ import { checkQueueCurrentTrack, checkQueueExists } from '../../utils/validation
|
||||
import { checkInVoiceChannel, checkSameVoiceChannel } from '../../utils/validation/voiceChannelValidator';
|
||||
import { Logger } from 'pino';
|
||||
|
||||
class NowplayingBackButton extends BaseComponentInteraction {
|
||||
class ActionPreviousButton extends BaseComponentInteraction {
|
||||
constructor() {
|
||||
super('nowplaying-back-button');
|
||||
super('action-previous-button');
|
||||
}
|
||||
|
||||
async execute(params: BaseComponentParams): BaseComponentReturnType {
|
||||
@@ -108,4 +108,4 @@ class NowplayingBackButton extends BaseComponentInteraction {
|
||||
}
|
||||
}
|
||||
|
||||
export default new NowplayingBackButton();
|
||||
export default new ActionPreviousButton();
|
||||
+3
-3
@@ -5,9 +5,9 @@ import { BaseComponentParams, BaseComponentReturnType } from '../../types/intera
|
||||
import { checkQueueCurrentTrack, checkQueueExists } from '../../utils/validation/queueValidator';
|
||||
import { checkInVoiceChannel, checkSameVoiceChannel } from '../../utils/validation/voiceChannelValidator';
|
||||
|
||||
class NowplayingSkipButton extends BaseComponentInteraction {
|
||||
class ActionSkipButton extends BaseComponentInteraction {
|
||||
constructor() {
|
||||
super('nowplaying-skip-button');
|
||||
super('action-skip-button');
|
||||
}
|
||||
|
||||
async execute(params: BaseComponentParams): BaseComponentReturnType {
|
||||
@@ -83,4 +83,4 @@ class NowplayingSkipButton extends BaseComponentInteraction {
|
||||
}
|
||||
}
|
||||
|
||||
export default new NowplayingSkipButton();
|
||||
export default new ActionSkipButton();
|
||||
Reference in new issue
Block a user