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 186d2d1 commit dc4d058Copy full SHA for dc4d058
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