mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-07 11:48:55 -05:00
* [streams]allowed_mentions on stream announcement Allows role mentions for discord.py 1.4+ # Type [x] Bugfix [ ] Enhancement [ ] New feature Description of the changes Referencing line 747. Gives permissions to mention role on stream announcement. * Update streams.py * Add `mention_everyone` defaults Lines for reference: - [751-753]: ```py if can_mention_everyone: await self.save_streams() return # if bot can mention everyone already, let's stop here``` - [722-774]: ```py if can_mention_everyone: mentions.append(role.mention) return # if bot can mention everyone already, let's stop here (part two)``` Hopefully, this is what you had in mind? Humbly admit I may not have a business in biting this piece but looking forward to feedback on the best methodology for the wanted outcome. Thanks! * *sweats* * imagine variable naming Should complete all passes. * misplaced unindent on return * Update redbot/cogs/streams/streams.py Co-authored-by: jack1142 <6032823+jack1142@users.noreply.github.com> * Update redbot/cogs/streams/streams.py Co-authored-by: jack1142 <6032823+jack1142@users.noreply.github.com> * Update redbot/cogs/streams/streams.py Co-authored-by: jack1142 <6032823+jack1142@users.noreply.github.com> * You're a beast jack Co-authored-by: jack1142 <6032823+jack1142@users.noreply.github.com> * this would cover all channels in guild (think) * give this a reeeeee * Update streams.py * adds channel argument https://github.com/Cog-Creators/Red-DiscordBot/pull/4182#pullrequestreview-468012281 * image style checking, self * imagine Co-authored-by: jack1142 <6032823+jack1142@users.noreply.github.com>