Well, there is no direct way to get anyone's IP from discord. as the platform
is secured and doesn't entertain leaking information about its users. But there
are some third-party tools or methods available to get someone's IP address, one
of them is Discord IP Resolver. The other one is the IP capture
link, which instantly captures the IP address of the users who click on the link
you sent.