We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0eda47a commit 3c72b27Copy full SHA for 3c72b27
1 file changed
tests/bot/exts/info/test_information.py
@@ -599,6 +599,9 @@ def setUp(self) -> None:
599
)
600
]
601
self.bot.api_client.get.return_value = self.full_rules
602
+ # Patch get_channel to handle the rule alerts being sent to a thread for non-staff (as our mock user is).
603
+ self.bot.get_channel.return_value = helpers.MockTextChannel(id=50, name="rules")
604
+
605
606
async def test_return_none_if_one_rule_number_is_invalid(self):
607
0 commit comments