async def look(self, ctx, *args): settings = Settings.get_for(ctx.guild.id) room = Room.get_by_any(ctx, args) if room: await RoomEmbed(ctx, room, 'request', settings).send() else: await ctx.send(settings.get_text('no_room'))
async def join(self, ctx, *args): settings = Settings.get_for(ctx.guild.id) if len(args) < 1: return await ctx.send(settings.get_text('missing_target_room')) room = Room.get_by_any(ctx, args) if room: joined = await self.try_join(ctx, room, ctx.author) if joined: await RoomEmbed(ctx, room, 'room_joined', settings).send() else: await channel.send(settings.get_text('retry_error')) else: await ctx.send(settings.get_text('room_not_exist'))