jagrosh / MusicBot

🎶 A Discord music bot that's easy to set up and run yourself!
https://jmusicbot.com
Apache License 2.0
5.41k stars 2.58k forks source link

[Bug Report] PluralKit causes bot responses to be deleted. #1395

Closed Steven121314 closed 10 months ago

Steven121314 commented 1 year ago

Bug Description

When in a server with PluralKit, the bot responses are deleted when Pluralkit proxies.

Steps to Reproduce

  1. Have PluralKit and MusicBot in the same server
  2. Enable autoproxy in PluralKit
  3. Send a MusicBot command, PluralKit will delete the original message and send a proxied message.
  4. The MusicBot response will get deleted too

Expected Result

I expected the MusicBot reply to not get deleted. Not all responses get deleted either. The Queue and Debug command appear to be fine. But the Play Pause Stop Current etc commands all have their responses deleted

image

image

image

Debug Output

System Properties:
  java.version = 1.8.0_341
  java.vm.name = Java HotSpot(TM) 64-Bit Server VM
  java.vm.specification.version = 1.8
  java.runtime.name = Java(TM) SE Runtime Environment
  java.runtime.version = 1.8.0_341-b10
  java.specification.version = 1.8
  os.arch = amd64
  os.name = Windows 10

JMusicBot Information:
  Version = 0.3.9
  Owner = 190610799373320192
  Prefix = Dj!
  AltPrefix = @mention
  MaxSeconds = 0
  NPImages = true
  SongInStatus = true
  StayInChannel = false
  UseEval = false
  UpdateAlerts = true

Dependency Information:
  JDA Version = 4.4.1_353
  JDA-Utilities Version = 3.0.5
  Lavaplayer Version = 1.3.78

Runtime Information:
  Total Memory = 272
  Used Memory = 116

Discord Information:
  ID = 1123017251075924028
  Guilds = 1
  Users = 4

Additional Info

No response

Checklist

Steven121314 commented 1 year ago

Here's an additional Screenshot image

ithinkimcats commented 1 year ago

This is intended behavior. JMusicBot uses a feature of JDA-Utils to delete the reply of a command once the invoking message is deleted.