Skip to content

Commit 3967132

Browse files
Remove check for isWebhookMessage in checkUser (#2857)
1 parent 8e687c8 commit 3967132

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/main/java/net/dv8tion/jda/internal/entities/ReceivedMessage.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,8 +168,6 @@ private void checkSystem(String comment)
168168

169169
private void checkUser()
170170
{
171-
if (isWebhookMessage())
172-
throw new IllegalStateException("Updating messages sent by a webhook must be done with the corresponding webhook!");
173171
if (!getJDA().getSelfUser().equals(getAuthor()))
174172
throw new IllegalStateException("Attempted to update message that was not sent by this account. You cannot modify other User's messages!");
175173
}

0 commit comments

Comments
 (0)