Skip to content

[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

Merged
merged 1 commit into from
Dec 10, 2020

Conversation

OskarStark
Copy link
Contributor

@OskarStark OskarStark commented Dec 9, 2020

Q A
Branch? 5.x
Bug fix? yes (but the code was introduced in 5.x)
New feature? no
Deprecations? no
Tickets ---
License MIT
Doc PR ---

From the code perspective it looks like $webhookId cannot be null so I removed that and added a test.

cc @mpiot

@carsonbot carsonbot changed the title [Notifier][Discord] Make webhookId argument required [Notifier] [Discord] Make webhookId argument required Dec 9, 2020
Copy link

@bykclk bykclk left a 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

@mpiot
Copy link
Contributor

mpiot commented Dec 9, 2020

@OskarStark yes you're right, both are required: token and the chanel id, to use the webhook.
Thanks a lot :)

@@ -31,6 +31,15 @@ public function testCreateWithDsn()
$this->assertSame(sprintf('discord://%s?webhook_id=%s', $host, $webhookId), (string) $transport);
}

public function testCreateWithNoWebhookIdThrowsMalformed(): void
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

: void as usual :)

@nicolas-grekas nicolas-grekas added this to the 5.x milestone Dec 9, 2020
Copy link
Member

@fabpot fabpot left a 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

@fabpot
Copy link
Member

fabpot commented Dec 10, 2020

Thank you @OskarStark.

@fabpot fabpot merged commit 14a94dc into symfony:5.2 Dec 10, 2020
@OskarStark OskarStark deleted the dsicord-webhook-id branch December 10, 2020 07:34
@fabpot fabpot mentioned this pull request Dec 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants