mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-12-09 02:42:30 -05:00
3
red.py
3
red.py
@@ -262,6 +262,9 @@ async def shutdown():
|
|||||||
@checks.is_owner()
|
@checks.is_owner()
|
||||||
async def join(invite_url : discord.Invite):
|
async def join(invite_url : discord.Invite):
|
||||||
"""Joins new server"""
|
"""Joins new server"""
|
||||||
|
if bot.user.bot == True:
|
||||||
|
bot.say("I cannot join servers with invite link. Please use a OAuth link.")
|
||||||
|
else:
|
||||||
try:
|
try:
|
||||||
await bot.accept_invite(invite_url)
|
await bot.accept_invite(invite_url)
|
||||||
await bot.say("Server joined.")
|
await bot.say("Server joined.")
|
||||||
|
|||||||
Reference in New Issue
Block a user