-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Notifier] [Discord] Make webhookId argument required #39413
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you are right
@OskarStark yes you're right, both are required: token and the chanel id, to use the webhook. |
@@ -31,6 +31,15 @@ public function testCreateWithDsn() | |||
$this->assertSame(sprintf('discord://%s?webhook_id=%s', $host, $webhookId), (string) $transport); | |||
} | |||
|
|||
public function testCreateWithNoWebhookIdThrowsMalformed(): void |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
as usual :): void
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To be merged in 5.2
986c014
to
21c4768
Compare
Thank you @OskarStark. |
From the code perspective it looks like
$webhookId
cannot benull
so I removed that and added a test.cc @mpiot