try:
channel1 = self.client.get_channel(self.grab_log_id(channel))
await channel.guild.kick(i.user, reason="Assistant Anti: Deleting Channels")
lel = discord.Embed(title='Action Assisted', description=f'**Target** : {i.user} | `{i.user.id}` \n **Action** : Kicked; Deleted Channel')
await channel1.send(embed=lel)
return
except Forbidden:
emd=discord.Embed(title="⚠️ Warning ⚠️", description="I am missing the necessary permissions to perform actions. \n Check if: \n - I am above __ALL__ users. \n - I have __Administrator__ permission.")
await channel1.send(f"{channel.guild.owner.mention}")
await channel1.send(embed=emd)
except AttributeError:
print("F")
error:
AttributeError: 'NoneType' object has no attribute 'send'
i know what the problem is, and to solve it need to add code to except attribute error, however i am still getting the error, where do i input it?, i am having trouble in actually handling it, once it can print F, i am able to add the channel id into a json and send the log