function getGuildID($guild) {
        if($guild === null || $guild === 'global') {
            return 'global';
        }
        
        return $this->client->guilds->resolve($guild)->id;
    }
function getGuildID($guild) {
        if($guild === null || $guild === 'global') {
            return 'global';
        }
        
        return $this->client->guilds->resolve($guild)->id;
    }
function getGuildID ( $ guild ) { if ( $ guild === null || $ guild === 'global' ) { return 'global' ; } return $ this -> client -> guilds -> resolve ( $ guild ) -> id ; }
Obtains the ID of the provided guild.
@param \CharlotteDunois\Yasmin\Models\Guild|string|int|null  $guild
@return string
@throws \InvalidArgumentException
Obtains the ID of the provided guild .